Learn R Programming

aqp (version 1.25)

depth_units: Get depth units from metadata

Description

Get units of depth measurement from metadata. Default value is centimeters.

Arguments

object

A SoilProfileCollection

value

character, a value representing units. Default 'cm'.

Examples

Run this code
# NOT RUN {
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

# }

Run the code above in your browser using DataLab