Description Usage Arguments Value Author(s) Examples
View source: R/noMorphospecies.R
Counts the number of a priori determined morphospecies/genera/etc. in a dataset.
1  | noMorphospecies(metadata, column = "binomial", tree = NULL)
 | 
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.  | 
An integer value (the number of unique elements in the specified column).
Jonas Eberle
1 2  | data(Carabidae)
noMorphospecies(Carabidae$metadata, column = "binomial", tree = Carabidae$tree)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.