Skip to content

SoilTaxonomy v0.2.3

Choose a tag to compare

@brownag brownag released this 10 Mar 22:04
· 56 commits to master since this release

SoilTaxonomy 0.2.3 (2023-03-10)

  • Fix unintended case-sensitivity of FormativeElements(); thanks to Shawn Salley (@swsalley)
  • Fix for extractSMR() via fix for FormativeElements() applied at multiple levels (affects taxa above subgroup level)
  • Add level_hierarchy() a helper function for creating ordered factors related to the levels: "order", "suborder", "greatgroup", "subgroup", "family".
  • Taxon code lookup tables are now cached in the package environment (SoilTaxonomy.env) after the first time they are used for a moderate boost in performance in scenarios calling taxon_code_to_taxon() or taxon_to_taxon_code() many times
  • getTaxonAtLevel() now supports multiple level values. In this case, a data.frame with column for each level is returned. Thanks to Meyer Bohn (@MollicMeyer) in #42 for suggestion.
  • Added taxonTree() a method for creating data.tree objects (added to Suggests). This function returns a custom SoilTaxonomy-specific subclass of data.tree Node called SoilTaxonNode.
    • This new class has a custom print method, and in the future there may be more dedicated functions for viewing and traversing the taxonomic hierarchy.
  • Added ST_higher_taxa_codes_13th the 13th edition analog of ST_higher_taxa_codes_12th, which is the Keys to Soil Taxonomy taxon list and corresponding letter codes. This lookup table is used internally for many things related to the hierarchy of taxonomy. It has not been integrated into other datasets (pending next NASIS data model update in several months). Incorporating the edition of taxonomy will be a significant change when implemented (and may contain breaking changes to code-lookup tools).

What's Changed

Full Changelog: 0.2.2...0.2.3