hzidname<- | R Documentation |
Set unique horizon ID column name
Get column name containing unique horizon ID
## S4 replacement method for signature 'SoilProfileCollection'
hzidname(object) <- value
## S4 method for signature 'SoilProfileCollection'
hzidname(object)
object |
a SoilProfileCollection |
value |
character, column name containing unique horizon ID values |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.