A <- data %>%
group_by(Agent) %>%
summarise(across(EP:Yt.ha),mean)
The Error message is
Error: Problem with summarise()
input ..2
.
x Input ..2
must be a vector, not a function.
i Input ..2
is mean
.
i The error occured in group 1: Agent = "Hydro".
Run rlang::last_error()
to see where the error occurred.
I remember doing it by this way longback but I believe that now I must have misplaced some functions or code. Can someone tell the correct way? There are 13 variable across EP to Yt.ha