/packages/archive/2010/05.2010/05.02.2010/spacodi/man/resamp.1s.Rd
http://github.com/eastman/spacodiR · Unknown · 35 lines · 24 code · 11 blank · 0 comment · 0 complexity · ab7d43c28270793ea0a07409e3be013d MD5 · raw file
- \name{resamp.1s}
- \alias{resamp.1s}
- \title{randomizing a community phylogenetics matrix: '1s' of Hardy (2008)}
- \usage{resamp.1s(obj)}
- \arguments{
- \item{obj}{a community-phylogenetic dataset in \code{SPACoDi} format (see \code{\link{as.spacodi}})}
- }
- \details{A resampling procedure for a species-by-plots matrix, where observed abundances are shuffled across species and plots.}
- \value{A shuffled dataset}
- \references{
- HARDY OJ. 2008. Testing the spatial phylogenetic
- structure of local communities: statistical performances of
- different null models and test statistics on a locally neutral
- community. Journal of Ecology 96:914-926.
- }
- \author{Timothy Paine and Jonathan Eastman}
- \seealso{\code{\link{Bst.by.nodes}} for permutation tests of community diversity and additional randomization methods;
- see \code{\link{spacodi.calc}} for the main underlying function; \code{\link[picante]{randomizeMatrix}}}
- \examples{
- sp.plot <- sim.spacodi(species=10,plots=4,missing.prop=0.15,sim.tree=FALSE)
- sp.plot
- # shuffle dataset
- resamp.1s(obj=sp.plot)
- }