dissect_name: Dissect Scientific Names into their Elements

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/dissect_name.R

Description

Depending the degree of resolution and specific roles of nomenclature, strings containing taxon usage names (scientific names) are constructed with different parts. A string with names can be consequently split into those elements, meanwhile the number of elements will suggest the taxonomic ranks.

Usage

1
dissect_name(x, split=" ", fixed=TRUE, ...)

Arguments

x

A character vector containing taxon names.

split, fixed, ...

Arguments passed to strsplit.

Details

This function is using strsplit for splitting names. Single spaces will be used to dissect names but it can be changed in the value of argument 'split'. The number of columns in the resulting matrix will depend on the longest polynomial string.

Value

A character matrix with as many rows as names in the input vector.

Author(s)

Miguel Alvarez, [email protected].

See Also

strsplit.

Examples

1
2
3
4
5
6
7
library(taxlist)
data(Easplist)

Easplist <- subset(Easplist, Level == "variety", slot="relations")
Easplist <- accepted_name(Easplist)[c(1:10),"TaxonName"]

dissect_name(Easplist)

taxlist documentation built on July 2, 2018, 1:03 a.m.