View source: R/getLastChildTaxon.R
getLastChildTaxon | R Documentation |
Get last child taxon in Keys at specified taxonomic level
getLastChildTaxon(level = c("order", "suborder", "greatgroup"))
level |
Get child taxa from keys at specified level. One of: |
A data.frame
containing key
(parent key), taxon
(last taxon name), code
(letter code), position
(relative taxon position)
# 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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.