Conditionally mutate columns based on column class
问题 My question is based on a previous topic posted here: Mutating multiple columns in a data frame Suppose I have a tibble as follows: id char_var_1 char_var_2 num_var_1 num_var_2 ... x_var_n 1 ... ... ... ... ... 2 ... ... ... ... ... 3 ... ... ... ... ... where id is the key and char_var_x is a character variable and num_var_x is a numerical variable. I have 346 columns in total and I want to write a function that scales all the numerical variables except the id column. I'm looking for an