Description Usage Arguments Value Author(s) See Also Examples
Generate a boolean matrix of soil depth classes from a SoilProfileCollection object.
1 2 | getSoilDepthClass(f, depth.classes = c(very.shallow = 25,
shallow = 50, mod.deep = 100, deep = 150, very.deep = 1000), ...)
|
f |
a SoilProfileCollection object |
depth.classes |
a named vector of classes and depth breaks |
... |
arguments passed to |
a data.frame
containing soil depth and depth class for each profile, see examples
D.E. Beaudette and J.M. Skovlin
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | data(sp1)
depths(sp1) <- id ~ top + bottom
# generate depth-class matrix
sdc <- getSoilDepthClass(sp1, name='name', top='top', bottom='bottom')
# inspect
head(sdc)
# join back into sp1 as site-level data
site(sp1) <- sdc
## Not run:
# sample data
data(gopheridge, package='soilDB')
getSoilDepthClass(gopheridge)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.