Description Objects from the Class Slots Methods Author(s) Examples
Basic class for storing soil profile collections, associated site data, and metadata.
Objects can be created by calls of the form new("SoilProfileCollection", ...)
.
idcol
:Object of class "character"
the name of the column used to uniquely identify profiles
depthcols
:Object of class "character"
with the names of columns containing the horizon top and bottom boundaries
metadata
:Object of class "data.frame"
with collection-level metadata, having a single row, and user-defined columns
horizons
:Object of class "data.frame"
with 1 or more rows per profile
site
:Object of class "data.frame"
with 1 row per profile
sp
:Object of class "SpatialPoints"
with 1 row per profile
diagnostic
:Object of class "data.frame"
with 0 or more rows per profile
signature(x = "SoilProfileCollection")
: ...
signature(x = "SoilProfileCollection")
: ...
signature(x = "SoilProfileCollection", i = "ANY", j = "missing")
: ...
signature(x = "SoilProfileCollection", i = "ANY", j = "missing")
: ...
signature(x = "SoilProfileCollection", i = "ANY", j = "missing")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(x = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(x = "SoilProfileCollection")
: ...
signature(x = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(x = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(data = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
signature(object = "SoilProfileCollection")
: ...
Pierre Roudier and Dylan E. Beaudette
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # concatenate SoilProfileCollection objects
## Not run:
require(plyr)
d <- ldply(1:10, random_profile)
# promote to SoilProfileCollection and plot
depths(d) <- id ~ top + bottom
plot(d)
# split into new SoilProfileCollection objects by index
d.1 <- d[1, ]
d.2 <- d[2, ]
d.345 <- d[3:5, ]
# recombine, note that profiles are sorted according to ID
d.new <- rbind(d.345, d.1, d.2)
plot(d.new)
## End(Not run)
## Not run:
# these next examples should throw an error
# insert a missing horizon boundary
data(sp1)
sp1$top[1] <- NA
depths(sp1) <- id ~ top + bottom
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.