
Load NCSS / KSSL pedons with reference USDA Soil Taxonomy classification
Source:R/benchmark-loaders.R
load_kssl_pedons.RdReads the KSSL pedon CSV export (typically named
NCSS_Pedon_Layer.csv or similar) plus the lab-data CSV, joins
on pedon_key, and assembles a list of PedonRecord
objects. The published USDA Soil Taxonomy classification (from the
Series or Subgroup field) is attached as
pedon$site$reference_usda.
Arguments
- pedon_csv
Path to the pedon-level CSV (one row per profile, with site-level metadata + classification).
- layer_csv
Path to the layer-level CSV (one row per horizon, with horizon properties).
- head
Optional integer; if not
NULL, returns only the firstheadpedons (useful for parser validation).- verbose
If
TRUE(default), emits a summary of the load.
Value
A list of PedonRecord objects.
Details
KSSL is the de-facto standard for validating USDA Soil Taxonomy keys (~50k profiles, lab-grade analytical data, professional pedon descriptions). Get the export from https://ncsslabdatamart.sc.egov.usda.gov/.