Learn R Programming

picante (version 1.8)

sample2matrix: Convert Phylocom sample to community data matrix

Description

Convert a Phylocom database-format sample to community data matrix.

Usage

sample2matrix(x)

Arguments

x

Phylocom sample formatted data frame, a data frame with three columns:

  • Column 1 Community name

  • Column 2 Species abundance

  • Column 3 Species name

References

Webb, C.O., Ackerly, D.D., and Kembel, S.W. 2008. Phylocom: software for the analysis of phylogenetic community structure and trait evolution. Version 4.0.1. http://www.phylodiversity.net/phylocom/.