write.spacodi.data: saving community phylogenetics datasets to a file
Description
write.spacodi.data generates community phylogenetic datasets to be used in the external program SPACoDi
Usage
write.spacodi.data(sp.plot, outfile)
Arguments
sp.plot
a community dataset formatted for the R-package spacodiR (see as.spacodi)
outfile
a formatted file for the Windows executable SPACoDi
Details
This utility writes a species-by-plots matrix into a format readable
by the external program SPACoDi, a Windows executable (available at
http://ebe.ulb.ac.be/ebe/Software.html).
See Also
as.spacodi for converting from phylocom to spacodiR formats;
see spacodi.calc for community diversity measures of empirical data
# generate a community-phylogenetics datasetdata(sp.example)
attach(sp.example)
# save the dataset to working directorywrite.spacodi.data(sp.plot=spl, outfile="spacodi.formatted.txt")