Re: [R] creating different strata

2007-05-16 Thread Petr Klasterecky
Something like this? sample((1:10),100,replace=TRUE) ?sample hth Petr raymond chiruka napsal(a): > hie > l would like to create about ten strata l have tried using > sample(c(1,2),1,replace=TRUE) but all l get is a vector of 1 and 2 if i > change it to sample(c(1,10),1,replace=TRUE) it give

Re: [R] creating different strata

2007-05-16 Thread raymond chiruka
sorry all l got the answer thanks raymond chiruka <[EMAIL PROTECTED]> wrote: hie l would like to create about ten strata l have tried using sample(c(1,2),1,replace=TRUE) but all l get is a vector of 1 and 2 if i change it to sample(c(1,10),1,replace=TRUE) it gives me a vector of 1 and

[R] creating different strata

2007-05-16 Thread raymond chiruka
hie l would like to create about ten strata l have tried using sample(c(1,2),1,replace=TRUE) but all l get is a vector of 1 and 2 if i change it to sample(c(1,10),1,replace=TRUE) it gives me a vector of 1 and 10 how do l go about it - [[