For all columns that start with a certain prefix (e.g.
numeric_feature_3 etc.), I would like to convert them into numeric using
as.numeric(). Normally, this is would be the manual way to do it (assuming there are only few columns, which is doable manually)
df |> mutate(numeric_column_1 = as.numeric(numeric_column_1)...)
However, if there are millions of columns, naming them one by one manually wouldn't be feasible. I would like to use
starts_with('numeric_')and convert all of them using
as.numeric(). However, all the examples I was able to find was using
select() and not
Is this possible?