Skip to content
Prev 310434 / 398506 Next

Simulate nested data

Hi Andrea,

Without knowing what species is, I can't run your code as is, but try this:


groups<-3
speciesgroups <- as.integer(runif(groups,1,10))
# I'd use sample(1:10, groups, replace=TRUE)
p<-array(NA,dim=speciesgroups)


Mostly you're trying to use c() on something that's already a vector.

Sarah

On Fri, Nov 9, 2012 at 2:16 PM, Andrea Goijman
<agoijman at cnia.inta.gov.ar> wrote:
--
Sarah Goslee
http://www.functionaldiversity.org