add_summary: Add summary to tibble

Description Usage Arguments Value

View source: R/dplyr-like.R

Description

A verb for a dplyr pipeline: Performs a call to summarise(), but does not reduce the data frame to one row per group, instead, adds the resulting fields to every row belonging to that group, returning the original frame with added/changed columns. Effectively, this is like calling summarise(), and then calling mutate() with all the resulting columns.

Usage

1
add_summary(.data, .language)

Arguments

.data

Data argument, typical "first" argument in dplyr verbs

.language

A call to summarise(), or another method performing equivalent aggregation (potentially wrapping summarise())

Value

The tibble with added columns


tidytidbits documentation built on March 8, 2021, 5:07 p.m.