R/helper-margins.r
add_margins.Rd
Rownames are silently stripped. All margining variables will be converted to factors.
add_margins(df, vars, margins = TRUE)
input data frame
a list of character vectors giving the variables in each dimension
a character vector of variable names to compute margins for. TRUE will compute all possible margins.
TRUE