Function which summarizes numeric/int by group
VarByGr(df, var, group, VarTypes)
df | Dataframe |
---|---|
var | Variable to be summarized |
group | Group to summarize over |
VarTypes | list with three elements, normvars nonnormvars binvars |
List of length = groups
First object column 1 (group1), second obj column 2 (group2) to be used in generating a "table one"