hi everyone! hope ur Wednesday going good. my goal really is to make the two data frames in one clean line of code, and any other cleaning tip would be great. any helps appreciated thank u so much
x <- function(.data, time_group) {
.data %>%
group_by(!!sym(time_group)) %>%
summarize(cat = n()) %>%
ungroup()
}
x_year <- full_data %>% x("year")
x_year_month <- full_data %>% x("year_month")