Learn R Programming

spacodiR (version 0.13.0115)

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

Examples

Run this code
# 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")

Run the code above in your browser using DataLab