[R] Sampling problems
Oritteropus
lucasantini85 at hotmail.com
Wed Mar 7 17:41:35 CET 2012
Hi,
I need to sample randomly my dataset for 1000 times. The sample need to be
the 80%. I know how to do that, my problem is that not only I need the 80%,
but I also need the corresponding 20% each time. Is there any way to do
that?
Alternatively, I was thinking to something like setdiff () function to
compare my 80% sample to the original dataset and obtain the corresponding
20%, unfortunately setdiff works just for vectors, do you know a similar
function for dataframes?
Thanks
--
View this message in context: http://r.789695.n4.nabble.com/Sampling-problems-tp4453752p4453752.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list