Subset a SoilProfileCollection with logical expressions
Source:R/SoilProfileCollection-methods.R
subset-SoilProfileCollection-method.Rd
subset()
is a function used for extracting profiles from a SoilProfileCollection based on logical criteria. It allows the user to specify an arbitrary number of logical vectors (equal in length to site or horizon), separated by commas. The function includes some support for non-standard evaluation.
Arguments
- x
A SoilProfileCollection
- ...
Comma-separated set of R expressions that evaluate as TRUE or FALSE. Length for individual expressions matches number of sites OR number of horizons, in
object
.- greedy
Use "greedy" matching for combination of site and horizon level matches?
greedy = TRUE
is the union, whereasgreedy = FALSE
(default) is the intersection (of site and horizon matches).