# load a SoilProfileCollection
data(jacobs2000, package = "aqp")
depths(jacobs2000)
## init SoilProfileCollection objects from data.frame of horizon data
# load demo data
data(sp1)
# promote to SPC
depths(sp1) <- id ~ top + bottom
# plot
plot(sp1)
# number of profiles
length(sp1)
# number of horizons
nrow(sp1)
Run the code above in your browser using DataLab