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

transform

Transform a SPC with expressions based on site or horizon level attributes


Description

transform() is a function used for modifying columns in SoilProfileCollections.

It allows the user to specify an arbitrary number of expressions that resolve to the (re-)calculation of one or more site or horizon level attributes. For instance: mutate(spc, thickness = hzdepb - hzdept). The expressions may depend on one another, and are evaluated from left to right.

Usage

## S4 method for signature 'SoilProfileCollection'
transform(`_data`, ...)

Arguments

_data

A SoilProfileCollection

...

Comma-separated set of R expressions e.g. thickness = hzdepb - hzdept, hzdepm = hzdept + round(thk / 2)

Value

A SoilProfileCollection

Author(s)

Andrew G. Brown.


aqp

Algorithms for Quantitative Pedology

v1.29
GPL (>= 3)
Authors
Dylan Beaudette [aut, cre], Pierre Roudier [aut, ctb], Andrew Brown [aut, ctb]
Initial release
2021-04-05

We don't support your browser anymore

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