scaff_sumtable: Creating a Table of Summary Statistics

Description Usage Arguments Examples

View source: R/scaff_sumtable.R

Description

This function takes three inputs: a dataframe, a grouping variable x, and an outcome y, and returns a table of summary statistics grouped by the x variable. The table contains commonly-requested parametric and nonparametric summary statistics, and the results can be passed to a formatting command (such as kable or flextable).

Usage

1

Arguments

data

dataframe passed into function

x

Categorical grouping variable

y

Outcome of Interest

Examples

1
scaff_sumtable(data = iris, x = Sepal.Length, y = Species)

mon4004/datascaffold documentation built on July 23, 2019, 8:23 p.m.