Pivot a crosstable
Pivot a crosstable so the variable
column is spread across its values.
pivot_crosstable(ct)
ct
: a crosstablea tibble of class pivoted_crosstable
ct = crosstable(mtcars2, c(mpg, drat, wt, qsec)) p_ct = pivot_crosstable(ct) as_flextable(p_ct)
Useful links