Is there a way to mutate all numeric variables except one (in this case age) or two?
data
data = data.frame(
Year = c(1,2,5,7,2,6,2,6),
days = c(5,3,6,3,7,2,5,7),
age = c(1,3,5,23,2,4,5,2),
names = c("A063", "A013", "A063", "A083", "A019", "A012", "A013", "A113"))
Something like this: I want to scale all numeric terms except age
data = mutate(across(where(is.numeric & !age), scale))