0

i.e getting the count of each variable in each column with out having to do multiple group bus This post: group_by(across(all_of(vars, YEARS))) - grouping by variables with a fixed YEAR variable seems to answer my question using this method purrr::map(vars, ~df %>% count(YEAR, .data[[.x]]))Is there a way to get the percentages at the same time as the counts?

I seem to get an error when I try to just add percent as the next step

Beth
  • 1
  • 2
    It's easier to help you if you include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input and desired output that can be used to test and verify possible solutions. – MrFlick Nov 11 '22 at 15:30

0 Answers0