Hi,
I have a dataset with 4 columns, of 2 months Jan and Feb. The data is on an hourly scale.
I am trying to get the final data with an aggregate hourly mean. Only 24 points (average hourly from Jan to Feb).
For that, I was using,
data %>%
mutate(hour = lubridate::hour(date)) %>%
group_by(hour) %>%
summarize(across(where(is.numeric), ~ mean(.x, na.rm = TRUE)))
This was working well till yesterday. But, now, when I am applying the same code to the same data. I am getting some errors
Error in `across()`:
! Must be used inside dplyr verbs.
Run `rlang::last_error()` to see where the error occurred.
Could you please tell me what the reason is for that?
Thanks