/packages/archive/2010/04.2010/04.20.2010/spacodi/man/resamp.1a.Rd

http://github.com/eastman/spacodiR · Unknown · 41 lines · 30 code · 11 blank · 0 comment · 0 complexity · 94fa71884c48eed31d8bc7e348fc416b MD5 · raw file

  1. \name{resamp.1a}
  2. \alias{resamp.1a}
  3. \title{randomizing a species-by-plots matrix: '1a' of Hardy (2008)}
  4. \usage{resamp.1a(obj, abund.class.ratio = 4)}
  5. \arguments{
  6. \item{obj}{a species-by-plots matrix}
  7. \item{abund.class.ratio}{a ratio defining abundance classes}
  8. }
  9. \details{A resampling procedure for a species-by-plots matrix, where species are shuffled within abundance classes.
  10. Species are grouped into distinct abundance classes characterized by a fixed ratio:
  11. \code{abund.class.ratio} = maximal abundance / minimal abundance. For instance, if \code{abund.class.ratio = 4},
  12. the limits between abundance classes could be 1, 4, 16, ... . Species are randomly permuted within each
  13. class, which maintains most of the abundance phylogenetic structure originally present in a dataset.
  14. }
  15. \value{a shuffled dataset}
  16. \references{
  17. HARDY OJ. 2008. Testing the spatial phylogenetic
  18. structure of local communities: statistical performances of
  19. different null models and test statistics on a locally neutral
  20. community. Journal of Ecology 96:914-926.
  21. }
  22. \author{Timothy Paine and Jonathan Eastman}
  23. \seealso{\code{\link{Bst.permutation}} for permutation tests of community diversity and additional randomization methods;
  24. see \code{\link{spacodi.calc}} for the main underlying function}
  25. \examples{
  26. sp_plot <- r.plot(species=10,plots=4,missing.prop=0.15,sim.tree=FALSE)
  27. sp_plot
  28. # shuffle dataset
  29. resamp.1a(obj=sp_plot, abund.class.ratio=3)
  30. }