depth_units: Get depth units from metadata

Description Usage Arguments Examples

Description

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

Usage

1
2
3
4
5
## S4 method for signature 'SoilProfileCollection'
depth_units(object)

## S4 replacement method for signature 'SoilProfileCollection'
depth_units(object) <- value

Arguments

object

A SoilProfileCollection

value

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

aqp documentation built on Sept. 29, 2021, 9:09 a.m.