My experiment is a completely randomized block design. The objective is to find whether a variable is different between species $a$, $b$, $c$. The measurement was taken 2 times (June, July) in each year (2011, 2012). I was wondering whether repeated measures ANOVA is a correct method to use? If it is, would you please help me to write up the syntax for the ANOVA and post-hoc analysis?
My data are like the following:
dat <- read.table(text = "species block year time variable
a 1 2011 June 1
a 2 2011 June 2
a 3 2011 June 3
b 1 2011 June 4
b 2 2011 June 5
b 3 2011 June 6
c 1 2011 June 7
c 2 2011 June 8
c 3 2011 June 9
a 1 2011 July 10
a 2 2011 July 11
a 3 2011 July 12
b 1 2011 July 13
b 2 2011 July 14
b 3 2011 July 15
c 1 2011 July 16
c 2 2011 July 17
c 3 2011 July 18
a 1 2012 June 19
a 2 2012 June 20
a 3 2012 June 21
b 1 2012 June 22
b 2 2012 June 23
b 3 2012 June 24
c 1 2012 June 25
c 2 2012 June 26
c 3 2012 June 27
a 1 2012 July 28
a 2 2012 July 29
a 3 2012 July 30
b 1 2012 July 31
b 2 2012 July 32
b 3 2012 July 33
c 1 2012 July 34
c 2 2012 July 35
c 3 2012 July 36", header=TRUE)