genera: Extract genus names

Description Usage Arguments Details Value Author(s) Examples

Description

Helper function to extract the genus names from phylogeny tip labels in the case when those labels are scientific names using binomial nomenclature.

Usage

1
2
3
4
  ## S4 method for signature 'phylo4'
genera(x)
  ## S4 method for signature 'phylo4com'
genera(x, community)

Arguments

x

a phylo4com object

community

a vector of community labels; if missing, all communities

Details

This is a simple function that assumes the tip labels of phylogeny phy are of the form “genus_species”. It does no checking whatsoever to check whether this is in fact the case.

Value

For phylo4, a character vector containing the genus portion of the tip labels, with element names corresponding to the numeric tip node ID. For phylo4com, a list of such vectors, one per community.

Author(s)

Jim Regetz (regetz@nceas.ucsb.edu)

Examples

1
2
3
4

ecoPD documentation built on May 2, 2019, 5:22 p.m.