Learn R Programming

binomen (version 0.1.2)

make_taxon_fromclass: Make taxon from class

Description

Make taxon from class

Usage

make_taxon_fromclass(data, authority = "none")

Arguments

data
A data.frame
authority
Taxonomic authority

Examples

Run this code
df <- data.frame(rank=c('family','tribe','subtribe','genus','subgenus','species'),
                 name=c('Helianthi','Helianthi','Helianthi','Poa','Festuci','Poa annua'),
                 id=c(1,2,3,4,5,6),
                 stringsAsFactors = FALSE)
apply(df, 1, make_taxon_fromclass)

Run the code above in your browser using DataLab