I am trying to look for sthg in package purrr, and I have seen the map functions in which you are able to detail what you want.
But I need to add to these functions which columns I want to include, as 2000:2077. Also I need to specify NA.RM = T, and just operate with numeric or double.
df_xyz %>%
summarise(
across(
.cols = everything(), --> [2000:2077]
.fns = mean,
na.rm = TRUE, --> is.numeric = T
.names = "{col}_mean"
)
)
I guess it is not that hard to perform but, I have not found threads performing just a range of columns. I need that because I have too many columns to perform everything, but not that many to customize