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