sim10(speciesData, rowWeights = runif(dim(speciesData)[1]), colWeights = runif(dim(speciesData)[2]))
Gotelli, N.J., G.R. Graves, and C. Rahbek. 2010. Macroecological signals of species interactions in the Danish avifauna. Proceedings of the National Academy of Sciences, U.S.A. 107: 530-535.
vector_sample
for weighted vector sampling.
randomMatrix <- sim10(speciesData=matrix(rbinom(40,1,0.5),nrow=8))
Run the code above in your browser using DataLab