
UNSTABLE Stock calculation from soil profile
compute_TOCstock.RdFunction to compute weighted TOCstock for a given depth limit (in meters)
Usage
compute_TOCstock(
data,
depth_from = 0,
depth_to = 0.3,
depth_top_var = "Depth_top",
depth_bottom_var = "Depth_bottom",
stock_var = "TOCstock",
grouping_vars = c("site_id", "Profile")
)