make_taxon_fromclass: Make taxon from class

View source: R/make_taxon_fromclass.R

make_taxon_fromclassR Documentation

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

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)

ropensci/binomen documentation built on May 18, 2022, 9:47 a.m.