naniar (version 0.4.2)

group_by_fun: Group By Helper

Description

This is a wrapper to facilitate the grouped_df S3 method.

Usage

group_by_fun(data, .fun, ...)

Arguments

data

data.frame, which will be grouped

.fun

a function to apply

...

additional arguments to be passed to map

Value

a dataframe with the function applied to each group

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
miss_case_table.grouped_df <- function(data){
group_by_fun(data,.fun = miss_case_table)
}
airquality %>%
group_by(Month) %>%
miss_case_table()
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace