get_sum: Get sum of a numeric variable. Treats missing values as zero.

get_sumR Documentation

Get sum of a numeric variable. Treats missing values as zero.

Description

Get sum of a numeric variable. Treats missing values as zero.

Usage

get_sum(data, strata, variable, name, output, round = 2)

Arguments

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


aasiyahrashan/TableOneDataframe documentation built on Dec. 9, 2024, 4:33 p.m.