I have a df and I want to do multiple transform on it with plyr:
idplot / idtree / species / condition / dbh_cm / h_m / hblc_m
CalcG <- function (df) transform(df, g_m2 = pi * (dbh_cm^2)/40000)
CalcHD <- function (df) transform(df, hd = h_m / dbh_cm)
...
Can be done in one function? Many thanks.