Function which summarizes numeric/int by group

VarByGr(df, var, group, VarTypes)

Arguments

df

Dataframe

var

Variable to be summarized

group

Group to summarize over

VarTypes

list with three elements, normvars nonnormvars binvars

Value

List of length = groups

Details

First object column 1 (group1), second obj column 2 (group2) to be used in generating a "table one"

Examples