depth_units,SoilProfileCollection-method | R Documentation |
Get units of depth measurement from metadata. Default value is centimeters.
## S4 method for signature 'SoilProfileCollection'
depth_units(object)
## S4 replacement method for signature 'SoilProfileCollection'
depth_units(object) <- value
object |
A SoilProfileCollection |
value |
character, a value representing units. Default |
data(sp5)
## get depth units
du <- depth_units(sp5)
# set alternate units; e.g. inches
depth_units(sp5) <- 'in'
# replace original value (cm)
depth_units(sp5) <- du
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.