shrink: Serial shrinking

Description Usage Arguments Value

View source: R/shrink.R

Description

Sequentially applies group_by and summarize to a data frame.

Usage

1
shrink(data, variables, grouping, how = last)

Arguments

data

A data frame

variables

Variables to summarize

grouping

A list of single, or vectors of, grouping variables to be used sequentially. The groups are summarized in the order they are provided.

how

A list of summarizing functions to be used, respectively, on each of the grouped data frames defined in groups

Value

A shrunk data frame


rscherrer/ggsim documentation built on June 11, 2020, 2:22 p.m.