Skip to content
Prev 168939 / 398506 Next

New to R

Gabor,

	Shouldn't the replace be TRUE instead of FALSE?  I get this error

Error in sample(6, 28, replace = FALSE) :
   cannot take a sample larger than the population when 'replace =  
FALSE'

when I use FALSE.  I don't get the error when it is TRUE.  Examining  
my mental model of what is going on you can't remove a number from a  
die thus each sample(value of the die) when selected has to be  
replaced.  Or am I missing something?

Thanks,
Joe
On Feb 2, 2009, at 1:00 PM, Gabor Grothendieck wrote: