add_mean_row: Add a mean row to a dataframe

Description Usage Arguments Value Examples

Description

Add a mean row to a dataframe where the first column is the category.

Usage

1
add_mean_row(df, .na_rm = FALSE)

Arguments

df

the input dataframe

.na_rm

option to remove NA from sum

Value

Dataframe with an added row for the totals of numeric variables. May require explicitly converting NAs.

Examples

1
2

KevinRPan/handy documentation built on May 4, 2019, 2:34 p.m.