I like to have the awesome statistics of datasummary_skim() from modelsummary package by groups.
library(modelsummary)
library(tidyverse)
mtcars %>% datasummary_skim()
How can I have a grouped data summary?
mtcars %>% group_by(vs) %>% datasummary_skim()



One option is to split the dataframe by groups, and then use
map()to applydatasummary_skim()to each child dataframe:Output: