Learn R Programming

SoilTaxonomy (version 0.1)

getParentTaxa: Get the higher (parent) taxa associated with a taxon or taxon code

Description

Must specify either taxon or code. taxon is used if both are specified.

Usage

getParentTaxa(taxon = NULL, code = NULL, convert = TRUE)

Arguments

taxon

A character vector of taxa (case-insensitive)

code

A character vector of taxon codes (case sensitive)

convert

Convert results from taxon codes to taxon names? Default: TRUE

Value

A named list, where names are taxon codes and values are character vectors representing parent taxa

Examples

Run this code
# NOT RUN {
getParentTaxa("ultic haploxeralfs")

getParentTaxa(code = c("ABCD", "DABC"))

getParentTaxa("folists", convert = FALSE)

# }

Run the code above in your browser using DataLab