Function which summarizes dichotomous or binary variable by a named group

t1_binvar(data, .var, .group, .referent = "1", quietly = T)

Arguments

.var

Variable to be summarized

.group

Group to summarize over

.referent

If variable logical or numeric, default reported is 1/"T", otherwise specify here.

quietly

If FALSE, function will report some internal steps

df

Dataframe

Value

List of length = groups

Details

Supply a dataframe, a variable to summarize, a group variable

Examples