Learn R Programming

aqp (version 2.1.0)

hzidname<-: Set horizon ID column name

Description

Set unique horizon ID column name

Get column name containing unique horizon ID

Usage

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

# S4 method for SoilProfileCollection hzidname(object)

Arguments

object

a SoilProfileCollection

value

character, column name containing unique horizon ID values

Examples

Run this code
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)

Run the code above in your browser using DataLab