Learn R Programming

SoilTaxonomy (version 0.2.3)

getParentTaxa: Get the higher (parent) taxa for a taxon name or code

Description

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

Usage

getParentTaxa(
  taxon = NULL,
  code = NULL,
  convert = TRUE,
  level = c("order", "suborder", "greatgroup", "subgroup")
)

Value

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

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

level

level Filter results to specific level? Default: "order","suborder","greatgroup","subgroup"

Examples

Run this code

getParentTaxa("ultic haploxeralfs")

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

getParentTaxa("folists", convert = FALSE)

Run the code above in your browser using DataLab