Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

simplifyFragmentData

Simplify Coarse Fraction Data


Description

Simplify multiple coarse fraction (>2mm) records by horizon.

Usage

simplifyFragmentData(rf, id.var, nullFragsAreZero = TRUE)

Arguments

rf

a data.frame object, typically returned from NASIS, see details

id.var

character vector with the name of the column containing an ID that is unique among all horizons in rf

nullFragsAreZero

should fragment volumes of NULL be interpreted as 0? (default: TRUE), see details

Details

This function is mainly intended for the processing of NASIS pedon/horizon data which contains multiple coarse fragment descriptions per horizon. simplifyFragmentData will "sieve out" coarse fragments into the USDA classes, split into hard and para- fragments.

The simplifyFragmentData function can be applied to data sources other than NASIS by careful use of the id.var argument. However, rf must contain coarse fragment volumes in the column "fragvol", fragment size (mm) in columns "fragsize_l", "fragsize_r", "fragsize_h", and fragment cementation class in "fraghard".

Examples:

Author(s)

D.E. Beaudette


soilDB

Soil Database Interface

v2.6.1
GPL (>= 3)
Authors
Dylan Beaudette [aut], Jay Skovlin [aut], Stephen Roecker [aut], Andrew Brown [aut, cre]
Initial release
2021-04-7

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.