Learn R Programming

phylotools (version 0.1.1)

phylocom.pd: Calculate phylogenetic diversity using Phylocom

Description

This is a wrapper function of phylocom for Calculate phylogenetic diversity using Phylocom

Usage

phylocom.pd(sample = "sample", phylo = "phylo")

Arguments

sample
Character string, the name of the sample file used in Phylocom
phylo
Character string, the name of the "phylo" file used in Phylocom

Value

  • PD data frame

References

Campbell Webb, David Ackerly, Steve Kembel (2010) Phylocom software for the analysis of phylogenetic community structure and character evolution (with phylomatic and ecovolve) User S Manual Version 4.1

See Also

phylocom.comstruct,phylocom.comdist

Examples

Run this code
### Assume the file sample1 and phylo1 have been saved to the R working directory.
### The phylocom executable file has been copied to the same working directory
### Or could be invoked in console by command lines.
### inorder to run phylocom in R, simply copy the following command:
#   i = 1
#   PD.res <- phylocom.pd(sample = paste("sample",i, sep = ""), 
#          phylo = paste("phylo",i, sep = ""), 
#          )
#   PD.res
#

Run the code above in your browser using DataLab