noMorphospecies: Get number of morphospecies in dataset

Description Usage Arguments Value Author(s) Examples

View source: R/noMorphospecies.R

Description

Counts the number of a priori determined morphospecies/genera/etc. in a dataset.

Usage

1
noMorphospecies(metadata, column = "binomial", tree = NULL)

Arguments

metadata

A table with taxonomic information (e.g. genus and species in columns). If a tree is given, rownames(x) must exactly match the tip labels of the tree.

column

Which column of the metadata should be summarized? (Number or column-name.)

tree

If a tree is specified, the data will be subset to match its tips. Defaults to tree=NULL, i.e. all elements in metadata are counted.

Value

An integer value (the number of unique elements in the specified column).

Author(s)

Jonas Eberle

Examples

1
2
data(Carabidae)
noMorphospecies(Carabidae$metadata, column = "binomial", tree = Carabidae$tree)

eberlejonas/TaxCI documentation built on July 20, 2021, 9:46 a.m.