[R] (no subject)

kaloytyn at cc.jyu.fi kaloytyn at cc.jyu.fi
Wed Mar 28 14:46:28 CEST 2007


Hallo,

I'm trying to sample a matrix with simple random sampling without
replacement but seem to have a problem with the matrix length. Both
sample() and srswor() use length() which returns the number of columns in
matrix. This means that to function it seems that the sample size exceeds
the matrix length. I need to sample the whole matrix for there are
auxiliary variables I need for further sample processing. Ay help is much
appreciated.

Regards,
Katja Löytynoja



More information about the R-help mailing list