Basic class for storing soil profile collections, associated site data, and metadata.
Objects can be created by calls of the form new("SoilProfileCollection", ...).
idcol:"character" the name of the column used to uniquely identify profiles depthcols:"character" with the names of columns containing the horizon top and bottom boundariesmetadata:"data.frame" with collection-level metadata, having a single row, and user-defined columnshorizons:"data.frame" with 1 or more rows per profilesite:"data.frame" with 1 row per profile sp:"SpatialPoints" with 1 row per profile diagnostic:"data.frame" with 0 or more rows per profilesignature(x = "SoilProfileCollection"): ... signature(x = "SoilProfileCollection"): ... signature(x = "SoilProfileCollection", i = "ANY", j = "ANY"): ... signature(x = "SoilProfileCollection", i = "ANY", j = "ANY"): ... signature(x = "SoilProfileCollection", i = "ANY", j = "ANY"): ... 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"): ... # 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) ## --------------------------------------------- ## 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 ## ---------------------------------------------