Subset the horizons in a SoilProfileCollection using logical criteria
Source:R/SoilProfileCollection-methods.R
subsetHz-SoilProfileCollection-method.Rd
subsetHz()
is a function used for extracting horizons from a SoilProfileCollection based on logical criteria.
Arguments
- x
a SoilProfileCollection
- ...
Comma-separated set of R expressions that evaluate as
TRUE
orFALSE
in context of horizon data frame. Length for individual expressions matches number of horizons, inx
.- drop
Default:
TRUE
. Whendrop=FALSE
placeholder horizons (profile ID with all other valuesNA
) are created where the specified filter results in removal of all horizons.