Skip to content
Prev 106761 / 398506 Next

Error: cannot take a sample larger than the population

Aldi Kraja wrote:
Yes, I think you are misunderstanding sample() in R.  If you want
those exact proportions in your xlrmN1 but with the observations in a
random order, you could do this:
xlrmN1
   0    1    2
0.02 0.93 0.05