[R] Row Sampling

Alex99 loyola9988 at yahoo.com
Mon Oct 20 16:00:35 CEST 2008



Hi everyone,
does any one knows how can I make sample from rows?
i.e. I have a data like this:

 s1 s2 s3 s4
1   0  0  0  1
2   1  0  1  0
3   0  0  0  0
4   0  0  0  0
5   0  1  0  1
6   1  0  0  0
7   0  0  0  0
8   0  0  0  0
9   0  0  0  0
10  0  0  0  1

I need to make 5 different sample with 5 different persons(rows) in each
sample from it keeping s1,s3,s3,s4 but changing rows. I cant get "replicate"
or "sample" functions to make samples by changing the rows.

Thanks

-- 
View this message in context: http://www.nabble.com/Row-Sampling-tp20067830p20067830.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list