/packages/archive/2010/04.2010/04.30.2010/spacodi/man/resamp.1s.Rd

http://github.com/eastman/spacodiR · Unknown · 35 lines · 24 code · 11 blank · 0 comment · 0 complexity · 45aa69585e1d9226506567c7e571e69a MD5 · raw file

  1. \name{resamp.1s}
  2. \alias{resamp.1s}
  3. \title{randomizing a species-by-plots matrix: '1s' of Hardy (2008)}
  4. \usage{resamp.1s(obj)}
  5. \arguments{
  6. \item{obj}{a community-phylogenetic dataset in \code{SPACoDi} format (see \code{\link{as.spacodi}})}
  7. }
  8. \details{A resampling procedure for a species-by-plots matrix, where observed abundances are shuffled across species and plots.}
  9. \value{A shuffled dataset}
  10. \references{
  11. HARDY OJ. 2008. Testing the spatial phylogenetic
  12. structure of local communities: statistical performances of
  13. different null models and test statistics on a locally neutral
  14. community. Journal of Ecology 96:914-926.
  15. }
  16. \author{Timothy Paine and Jonathan Eastman}
  17. \seealso{\code{\link{Bst.by.nodes}} for permutation tests of community diversity and additional randomization methods;
  18. see \code{\link{spacodi.calc}} for the main underlying function}
  19. \examples{
  20. sp.plot <- sim.spacodi(species=10,plots=4,missing.prop=0.15,sim.tree=FALSE)
  21. sp.plot
  22. # shuffle dataset
  23. resamp.1s(obj=sp.plot)
  24. }