Use cases search as, where interroA is in wide format
interroA %>%
privot_longer(names_to = "interro", values_to = "res", starts_with("interro")) %>%
group_by(interro) %>%
summarise(mean_interro = mean(res))
or
interroA %>%
summarise(mean1 = mean(interro1), mean2 = mean(interro2), ...)
will be possible with
interroA %>%
summarise(across(starts_with("interro"), mean))
See https://www.tidyverse.org/blog/2020/04/dplyr-1-0-0-colwise/
Use cases search as, where
interroAis in wide formator
will be possible with
See https://www.tidyverse.org/blog/2020/04/dplyr-1-0-0-colwise/