Re: [R] A question about sampling

2011-02-02 Thread Greg Snow
Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Patrick Boily > Sent: Wednesday, February 02, 2011 1:03 PM > To: 'r-help@r-project.org' > Subject: [R] A question about sampling > > Greetings, > > I am a

[R] A question about sampling

2011-02-02 Thread Patrick Boily
Greetings, I am attempting to do something with R that I think should be efficiently do-able, but I haven't yet found success. I have a vector of probability weights (for 17 categories), let's call it things (it could look like the one below, for instance). > things 0.026 0 0.233 0 0.131 0 0.4