search for: tp2227665p2227683

Displaying 1 result from an estimated 1 matches for "tp2227665p2227683".

2010 May 22
3
How sample without replacement on more than one variables?
Hello All, sample() only sample on one variable x. But I'm interested in sampling more than one variable without replacement. Suppose I have 3 vectors x, y, z. I want to draw samples from all three vectors such that the combination of the three elements in each draw is not the same as any previous draws. I could use expand.grid to generate a vector out of the three vectors. But when the