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 ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
