powered by
GHL(): Get column name containing generalized horizon labels
GHL()
GHL<-: Set generalized horizon label column name
GHL<-
# S4 method for SoilProfileCollection GHL(object, required = FALSE)# S4 method for SoilProfileCollection GHL(object, required = FALSE) <- value
# S4 method for SoilProfileCollection GHL(object, required = FALSE) <- value
a SoilProfileCollection
logical, is this attribute required? If it is, set to TRUE to trigger error on invalid value.
TRUE
value
character, name of column containing generalized horizon labels
Store the column name containing generalized horizon labels in the metadata slot of the SoilProfileCollection.
data(sp1) # promote to SPC depths(sp1) <- id ~ top + bottom # set horizon designation column GHL(sp1) <- "name" # get horizon designation column GHL(sp1)
Run the code above in your browser using DataLab