View source: R/family-classes.R
| parse_family | R Documentation |
Parse components of a "family-level" taxon name
parse_family(family, column_metadata = TRUE, flat = TRUE)
family |
character. vector of taxonomic families, e.g. |
column_metadata |
logical. include parsed NASIS physical column names and values from family taxon components? Default: |
flat |
logical Default: |
a data.frame containing column names: "family" (input), "subgroup" (parsed taxonomic subgroup), "subgroup_code" (letter code for subgroup), "class_string" (comma-separated family classes), "classes_split" (split class_string vector stored as list column).
In addition, the following column names are identified and returned based on NASIS (National Soil Information System) metadata (via soilDB package):
"taxpartsize", "taxpartsizemod", "taxminalogy", "taxceactcl", "taxreaction", "taxtempcl", "taxfamhahatmatcl", "taxfamother", "taxsubgrp", "taxgreatgroup", "taxsuborder", "taxorder"
if (requireNamespace('soilDB')) {
families <- c("fine, kaolinitic, thermic typic kanhapludults",
"fine-loamy, mixed, semiactive, mesic ultic haploxeralfs",
"euic, thermic typic haplosaprists",
"coarse-loamy, mixed, active, mesic aquic dystrudepts")
# inspect parsed list result
str(parse_family(families))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.