Learn R Programming

SoilTaxonomy (version 0.2.3)

getLastChildTaxon: Get last child taxon in Keys at specified taxonomic level

Description

Get last child taxon in Keys at specified taxonomic level

Usage

getLastChildTaxon(level = c("order", "suborder", "greatgroup"))

Value

A data.frame containing key (parent key), taxon (last taxon name), code (letter code), position (relative taxon position)

Arguments

level

Get child taxa from keys at specified level. One of: "order", "suborder", "greatgroup"

Examples

Run this code

# get last taxa in suborder-level keys
x <- getLastChildTaxon(level = "suborder")

# proportion of keys where last taxon has "Hap" formative element
prop.table(table(grepl("^Hap", x$taxon)))

Run the code above in your browser using DataLab