get_sum | R Documentation |
Get sum of a numeric variable. Treats missing values as zero.
get_sum(data, strata, variable, name, output, round = 2)
data |
tibble containing data. Can't be a grouped tibble |
strata |
variable to stratify output by. Needs to be a factor to force to ordering to work. |
variable |
Numeric variable to get sum for |
name |
string name to put into the row |
output |
The dataframe to append the requested summary to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.