Calculate average value by group

calcAvgValue(df, var, startYear, endYear, groupVars = NULL)

Arguments

df

A data frame

startYear

An integer

endYear

An integer

groupVars

A vector