Learn R Programming

aqp (version 1.27)

hzidname<-: Set horizon ID column name

Description

Set unique horizon ID column name

Get column name containing unique horizon ID

Arguments

value

character, column name containing unique horizon ID values

object

a SoilProfileCollection

Examples

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