data(sp1)
# convert into SoilProfileList object
sp1.splist <- initProfileList(sp1)
# basic accessor functions (still in development)
# 1. get the first horizon from each soil profile
sp1.splist[1,]
# 2 get the first profile as a SoilProfile object
sp1.splist[, 1]
# 3. get a named column from the second profile
sp1.splist[, 2][, 'name']
Run the code above in your browser using DataLab