View source: R/helper-margins.r
Rownames are silently stripped. All margining variables will be converted to factors.
1 | add_margins(df, vars, margins = TRUE)
|
df |
input data frame |
vars |
a list of character vectors giving the variables in each dimension |
margins |
a character vector of variable names to compute margins for.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.