Hi All,

 

I want to take a simple random sample from a large dataset, gly, but I'm
getting an error message.  Any help?

 

dim(gly)

[1] 112371     37

> s1 <- sample(gly,100)

Error in `[.data.frame`(x, .Internal(sample(length(x), size, replace,  :


  cannot take a sample larger than the population when 'replace = FALSE'

 

Thanks,

 

Rachel


	[[alternative HTML version deleted]]


