Re: [R] Row Sampling

2008-10-20 Thread jim holtman
Is this what you want: > x <- read.table(textConnection(" 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"), header=TRUE) > closeAllConnections() > for (i in 1:5){

[R] Row Sampling

2008-10-20 Thread Alex99
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 wit