tax_available_name: Return available taxonomical records

Description Usage Arguments Value Examples

View source: R/datacheck_helpers.R

Description

'tax_available_name()' is a function that checks if given records are within specified rank. It requires two inputs 'name' of taxonimal records and 'rank_orig' (taxonimical rank). Output is subset of names that were within given rank.

Usage

1
tax_available_name(name = NULL, rank_orig = "class", db = "gbif")

Arguments

name

A character vector of taxonomical records (e.g. 'c("Animalia", "Aves")').

rank_orig

A string for taxonimical rank (e.g. 'class')

db

A string for reference database (passed to 'tax_available_name')

Value

A character vector of available names within given rank.

Examples

1
2
3
my_name <- c("Animalia", "Chordata", "Aves", "Mammalia")
my_rank <- "class"
tax_available_name(my_name, my_rank)

bd-R/bdchecks documentation built on Oct. 8, 2021, 5:10 p.m.