hzmetaname | R Documentation |
hzmetaname()
: Get column name containing horizon data of interest
hzmetaname<-
: Set horizon designation column name
## S4 method for signature 'SoilProfileCollection'
hzmetaname(object, attr, required = FALSE)
## S4 replacement method for signature 'SoilProfileCollection'
hzmetaname(object, attr, required = FALSE) <- value
object |
A SoilProfileCollection |
attr |
character. Base name for attribute to be stored in metadata. This is prefixed with |
required |
logical. Is this attribute required? If it is, set to |
value |
character. Name of horizon-level column containing data corresponding to |
Store the column name containing a specific type of horizon data in the metadata slot of the SoilProfileCollection.
guessHzAttrName()
data(sp1)
# promote to SPC
depths(sp1) <- id ~ top + bottom
# set important metadata columns
hzdesgnname(sp1) <- "name"
hztexclname(sp1) <- "texture"
# set custom horizon property (clay content) column
hzmetaname(sp1, "clay") <- "prop"
# inspect metadata list
metadata(sp1)
# get horizon clay content column
hzmetaname(sp1, "clay")
# uses hzdesgname(), hztexclname(), hzmetaname(attr="clay") in function definition
estimatePSCS(sp1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.