79811611

Date: 2025-11-06 17:51:21
Score: 0.5
Natty:
Report link

You jsut need to make the output of the tally method wide:


df_summary_wide <- df %>% group_by(sex, car_owned) %>% tally() %>%
  pivot_wider(names_from = car_owned, values_from = n)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: BEVAN