subsetHz,SoilProfileCollection-method | R Documentation |
subsetHz()
is a function used for extracting horizons from a SoilProfileCollection based on logical criteria.
## S4 method for signature 'SoilProfileCollection'
subsetHz(x, ..., drop = TRUE)
x |
a SoilProfileCollection |
... |
Comma-separated set of R expressions that evaluate as |
drop |
Default: |
To minimize likelihood of issues with non-standard evaluation context, especially when using subsetHz()
inside another function, all expressions used in ...
should be in terms of variables that are in the horizon data frame.
a SoilProfileCollection with a subset of horizons, possibly with some sites removed
data(sp3)
depths(sp3) <- id ~ top + bottom
# show just horizons with 10YR hues
plot(subsetHz(sp3, hue == '10YR'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.