library(xlr)
# Assuming example data from build_table or similar
table <- clothes_opinions |>
build_table(c(gender,age_group))
make_wider(table)
# use top_variable to specify that we have gender as out selection column
make_wider(table, top_variable = age_group)
Run the code above in your browser using DataLab