group_summarize: Calculate descriptive statistics for each group

Description Usage Arguments Value Examples

View source: R/group_summarize.R

Description

group_summarize performs descriptive statistics for each group in a data set.

The function takes as input a data.frame or tibble, the column names of grouping variables, and the column names of variables of interest.

Usage

1
group_summarize(x, group_cols, var_cols, output_format = "v1", ...)

Arguments

x

A data.frame or tibble.

group_cols

Vector of the names of the grouping columns.

var_cols

Vector of the names of the variables of interest.

output_format

The version of the output format (v0 or v1).

...

Extra arguments passed to fxn, i.e. na.rm = FALSE, etc.

Value

A tibble

A group_summary object with slots for the results, grouping variables, variables of interest, and any other parameters passed in.

Examples

1
group_summarize(iris, "Species", c("Sepal.Length", "Sepal.Width"))

SimplifyStats documentation built on April 14, 2020, 6:27 p.m.