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
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
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
-
[[