Dear group,

I want to generate a vector of 10 elements that always has 20% zeroes, but with a random ordering of zeroes and ones. Can you please suggest a function to do that in R? I tried 'sample' function but the 20% zeros was not always guaranteed.

Thanks for your help.

Regards,
Ayyappa
	[[alternative HTML version deleted]]

