I guessed you mean 2 treatment groups, N=18 and 3 blocks (so n=6 per block):
blocks <- 3
ngroups <- 2
groupsize <- 3
group <- NULL;
block <- NULL;
set.seed(911)
for (i in 1:blocks){
foo <- sample(rep(c('A', 'B'), groupsize))
group <- c(group, foo)
block <- c(block, rep(i, groupsize*ng
Thanks for the comments.
I think i phrased my question incorrectly but the following gave me what I
wanted. 18 treatments(plants) , 3 blocks, a total of 54 plots. I could not
figure out exac
> library(agricolae)
> trt<-
> c("1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17
Sorry, try this again.
Does this help:
http://www2.warwick.ac.uk/fac/sci/moac/degrees/moac/ch923/lectures/moac_-_designing_experiments_in_r.pdf
If not, we need some more specifics about what you've tried and where
you are running into problems.
Sarah
On Thu, Jun 12, 2014 at 11:34 AM, Chatcher
3 matches
Mail list logo