Learn R Programming

presenter (version 0.1.2)

pivot_summary: Pivot Summary

Description

Wrapper around base r `t()` that returns a tibble. Transposes a data frame, intended for use on the output of a dplyr::summarize operation

Usage

pivot_summary(sumr, ...)

Value

a tibble

Arguments

sumr

A tibble

...

an optional tidyselect specification of grouping columns to pivot

Details

for an ungrouped summarize, ... argument can be left empty for a grouped summarize, use column names or tidyselect to pivot the group names. Multiple groups will be concatenated before pivoting.