add_margins: add_margins

Description Usage Arguments Value

Description

A function to add column and row totals to a dataframe. Assumes character columns followed by all numeric columns.

Usage

1

Arguments

df

Dataframe to add margins to.

rowsum

Boolean to indicate if you want row sums in a Total column. Defaults to TRUE.

Value

Returns dataframe with margins added.


kimjam/srms documentation built on May 20, 2019, 10:21 p.m.