R/LilHelpers3.R
root_accumulation.Rd
Calculate root accumulation
root_accumulation(x, group, depth, variable, stdrz = "counts")
Data frame containing group, depth, and variable columns
Character vector specifying grouping variable(s)
Character string specifying depth column name
Character string specifying accumulating values column
Character string specifying standardization method
Numeric vector of accumulated values
df = data.frame(depth = c(seq(0,80,20),seq(0,80,20)), Plot = c(rep("a",5),rep("b",5)), rootpx = c(5,50,20,15,5,10,40,30,10,5) ) accum_root = root_accumulation(df,group = "Plot", depth = "depth", variable = "rootpx")