Re: [R] Randomly selecting rows with unique values in two columns

2011-09-26 Thread R. Michael Weylandt
It sounds like you've already done the hard(er) part: just use sample(nrow, noWanted) now to pick which rows to select. Michael Weylandt On Sep 26, 2011, at 5:42 PM, hasan wrote: > Hello, > > I am trying to randomly select rows with unique values in columns 1 and 2. I > want to generate mult

Re: [R] Randomly selecting rows with unique values in two columns

2011-09-26 Thread David Winsemius
On Sep 26, 2011, at 5:42 PM, hasan wrote: Hello, I am trying to randomly select rows with unique values in columns 1 and 2. I want to generate multiple subsets to estimate a statistic for each data set. Below is a simplified example. L1 L2 L3 L4 L5 1 a b 1 2 3 2 a c 4 5 6 3

[R] Randomly selecting rows with unique values in two columns

2011-09-26 Thread hasan
Hello, I am trying to randomly select rows with unique values in columns 1 and 2. I want to generate multiple subsets to estimate a statistic for each data set. Below is a simplified example. L1 L2 L3 L4 L5 1 a b 1 2 3 2 a c 4 5 6 3 a d 7 8 9 4 a e 10 11 12 5 a f 13 14