One of my favorite ways to get summaries is to use janitor::tabyl(), and using map helps me get every variable (or all non-numeric like the following example). When I do one variable at a time (e.g. df%>% tabyl(Variable) I can then pipe into gt::gt %>%gtsave("name.tex"). But when I make my tabyl through map, I can't. Any suggestions about further transformations to make it compatible with the gt package?
library(gt)
library(janitor)
library(datasets)
gss_cat%>% select(!where(is.numeric)) %>%
map(~(tabyl(.) %>% adorn_pct_formatting()))
