taxlist (version 0.1.7)

dissect_name: Dissect Scientific Names into their Elements

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

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

Arguments

x

A character vector containing taxon names.

split, fixed, ...

Arguments passed to strsplit.

Value

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

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.

See Also

strsplit.

Examples

Run this code
# NOT RUN {
library(taxlist)
data(Easplist)

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

dissect_name(Easplist)
# }

Run the code above in your browser using DataLab