hzidname: Set horizon ID column name

hzidname<-R Documentation

Set horizon ID column name

Description

Set unique horizon ID column name

Get column name containing unique horizon ID

Usage

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

## S4 method for signature 'SoilProfileCollection'
hzidname(object)

Arguments

object

a SoilProfileCollection

value

character, column name containing unique horizon ID values

Examples

data(sp1)

# promote to SPC
depths(sp1) <- id ~ top + bottom

# create new horizon ID
sp1$hzIDrev <- rev(sp1$hzID)

# set horizon designation column
hzidname(sp1) <- "hzIDrev"

# get horizon designation column
hzidname(sp1)


aqp documentation built on Oct. 19, 2024, 5:06 p.m.