Site Treatment Month repli
W2 0 0 2
W3 0 0 1
W7 0 0 3
W12 0 0 4
W2 0 1 2
W3 0 1 1
W7 0 1 3
W12 0 1 4
W2 0 3 2
W3 0 3 1
W7 0 3 3
W12 0 3 4
W2 0 4 2
W3 0 4 1
W7 0 4 3
W12 0 4 4
If I use
for(i in 1:max(data$Repli)){
s1=subset(data,data$Repli==i)
I get the last row (w12 one)
Site Treatment Month repli
W12 0 0 4
W12 0 1 4
W12 0 3 4
W12 0 5 4
My question is how to select other rows? What would be my code when I would like to select W2, W3 or W7?
Thank you!
I have to use the same script as i from the below script is being used elsewhere
for(i in 1:max(Cs$Repli)){
s1=subset(Cs,Cs$Repli==i)