sp_list_df: Convert a vector of species names to a data frame

View source: R/utils.R

sp_list_dfR Documentation

Convert a vector of species names to a data frame

Description

Convert a vector of species names to a data frame

Usage

sp_list_df(sp_list, taxon)

Arguments

sp_list

A string vector or a data frame with at least one column named "species".

taxon

The taxon group of this species list. If not specified, only species and genus will be returned.

Value

A data frame with columns: species, genus, and family (if taxon is specified).

Examples

sp_list_df(sp_list = c("Serrasalmus_geryi", "Careproctus_reinhardti", "Gobiomorphus_coxii"),
           taxon = "fish")

daijiang/rtrees documentation built on June 24, 2024, 12:35 a.m.