mutate_profile | R Documentation |
mutate_profile()
is a function used for transforming SoilProfileCollections. Each expression is applied to site or horizon level attributes of individual profiles. This distinguishes this function from transform
, which is applied to all values in a collection, regardless of which profile they came from.
mutate_profile(object, ..., horizon_level = NULL)
object |
A SoilProfileCollection |
... |
A set of comma-delimited R expressions that resolve to a transformation to be applied to a single profile e.g |
horizon_level |
logical. If |
If the length an expression's result matches the number of horizons, the result is stored as a horizon-level variable. If the result has length 1, it is stored as a site-level variable. In the ambiguous case where the first and last profile have only one horizon, the results are stored in the horizon slot by default. To force results into site slot use horizon_level = FALSE
.
A SoilProfileCollection.
Andrew G. Brown.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.