[R] Simple solution

Oritteropus lucasantini85 at hotmail.com
Thu Mar 8 15:00:13 CET 2012


Hi everybody,
Thank you all for your suggestions, you have been very helpful. 
However at the end I solved in this way:

mysample <- MaxDH[sample(1:nrow(MaxDH), 150, replace=FALSE),]
A<-mysample[1:120,]
B<-mysample[121:150,]

So simple at the end...

Best,

Luca

--
View this message in context: http://r.789695.n4.nabble.com/Sampling-problems-tp4453752p4456469.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list