What is the equivalent of the code below in the recipe package #tidymodels ?
df %>%
group_by(state, month) %>%
mutate_at(vars(-group_cols()), ~replace(., is.na(.), median(., na.rm = TRUE)))
I've searched the recipe reference page but haven't found how do I replace the NA's with the median grouped by each month/state