replaceHorizons<- | R Documentation |
Replaces horizon data with new data.frame
object.
## S4 replacement method for signature 'SoilProfileCollection'
replaceHorizons(object) <- value
object |
A |
value |
An object inheriting |
# load test data
data(sp2)
# promote to SPC
depths(sp2) <- id ~ top + bottom
# one profile
p <- sp2[1,]
# 23 variables in horizon data
length(horizonNames(sp2))
# remove all but essential ones
replaceHorizons(p) <- horizons(p)[,c(idname(p), hzidname(p), horizonDepths(p))]
# inspect result (a clean slate)
horizons(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.