R: saving community phylogenetics datasets to a file
write.spacodi.data
R Documentation
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).
Author(s)
Jonathan Eastman
See Also
as.spacodi for converting from phylocom to spacodiR formats;
see spacodi.calc for community diversity measures of empirical data
Examples
# generate a community-phylogenetics dataset
data(sp.example)
attach(sp.example)
# save the dataset to working directory
write.spacodi.data(sp.plot=spl, outfile="spacodi.formatted.txt")