Skip to content
Prev 5893 / 7420 Next

Problem in generate random samples in r

Hi Lara,

the error is quite informative. You use the sample function twice. At least for one the length of the vector where you sample from is shorter (contains less values) than than the number of samples you wanna draw. 

best,

Henrik