Re: [R] Random selection of a fixed number of values by interval

2015-12-15 Thread Frank S.
> >> names(samples) <- grp > >> samples > > $`[0,1)` > > [1] 69 68 33 63 56 46 65 12 50 58 > > > > $`[1,2)` > > [1] 20 34 43 8 15 52 19 > > > > $`[2,3)` > > [1] 7 22 62 28 2 > > > > $`[3,4)` > > [1] 61 53

Re: [R] Random selection of a fixed number of values by interval

2015-12-14 Thread David Winsemius
gt; [1] 7 22 62 28 2 > > $`[3,4)` > [1] 61 53 5 25 21 > > $`[4,5)` > [1] 59 35 40 > > > ----------------- > David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77840-4352 > > > &

Re: [R] Random selection of a fixed number of values by interval

2015-12-14 Thread Bert Gunter
> [1] 7 22 62 28 2 > > $`[3,4)` > [1] 61 53 5 25 21 > > $`[4,5)` > [1] 59 35 40 > > > - > David L Carlson > Department of Anthropology > Texas A&M University > College Station, TX 77840-4352 > > > > -Origin

Re: [R] Random selection of a fixed number of values by interval

2015-12-14 Thread David L Carlson
40 - David L Carlson Department of Anthropology Texas A&M University College Station, TX 77840-4352 -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Frank S. Sent: Monday, December 14, 2015 2:02 PM To: r-help@r-

[R] Random selection of a fixed number of values by interval

2015-12-14 Thread Frank S.
Dear R users, I'm writing to this list because I must get a random sample (without replacement) from a given vector, but the clue is that I need to extract a fixed number of values by each prespecified 1-unit interval. As an example I try to say, I have a data frame that looks like this (my re