Re: [R] drawing samples based on a matching variable

2010-09-29 Thread L Brown
Thanks much for all the help, R-helpers. Ended up getting the counts of the categories of the matching variable in both x and y and then limiting the sample from there. No longer really random, but I think it's fine for my purposes. Thanks again. LB On 28 September 2010 18:40, Michael Bedward

[R] drawing samples based on a matching variable

2010-09-28 Thread L Brown
Hi, everyone. I have what I hope will be a simple coding question. It seems this is a common job, but so far I've had trouble finding the answer in searches. I have two matrices (x and y) with a different number of observations in each. I need to draw a random sample without replacement of