Learn R Programming

crosstable (version 0.8.0)

pivot_crosstable: Pivot a crosstable

Description

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

Usage

pivot_crosstable(ct)

Value

a tibble of class pivoted_crosstable

Arguments

ct

a crosstable

Examples

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

Run the code above in your browser using DataLab