Re: [R] How to view un-sampled data from a randomly sampled dataset

2013-10-23 Thread erinu
hi bert- all of the values are unique, so the random sample of everything was also a random sample of all unique numbers. Erin -- View this message in context: http://r.789695.n4.nabble.com/How-to-view-un-sampled-data-from-a-randomly-sampled-dataset-tp4678887p4678908.html Sent from the R hel

Re: [R] How to view un-sampled data from a randomly sampled dataset

2013-10-23 Thread erinu
Thanks guys! Easy, quick fix! -- View this message in context: http://r.789695.n4.nabble.com/How-to-view-un-sampled-data-from-a-randomly-sampled-dataset-tp4678887p4678905.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-proj

[R] How to view un-sampled data from a randomly sampled dataset

2013-10-23 Thread erinu
Hi there- I have a 150 row dataset (data). I create "y" a randomly sampled (without replacement) set number of observations (40): y<-data[sample(1:nrow(data),40,replace=FALSE),] I would like to make a new variable "x" that contains the leftover non-sampled 110 observations. I am sure there is a