pivot_crosstable: Pivot a crosstable

View source: R/pivot.R

pivot_crosstableR Documentation

Pivot a crosstable

Description

Pivot a crosstable so the variable column is spread across its values.

Usage

pivot_crosstable(ct)

Arguments

ct

a crosstable

Value

a tibble of class pivoted_crosstable

Examples

ct = crosstable(mtcars2, c(mpg, drat, wt, qsec))
p_ct = pivot_crosstable(ct)
as_flextable(p_ct)

DanChaltiel/crosstable documentation built on Jan. 23, 2025, 10:10 a.m.