I'm sorry, but I couldn't get reprex.
I have many character columns with numbers and characters. I want to remove characters and leave numbers but to do this with many variables at the same time.
I am using this code:
pandemic_siordia %>%
mutate(across(anxiety_1:lifesat_5), str_extract("^\d+"))
with different modifications (changing variables, or putting ".," in str_extract) but still get various errors.
What can I possibly be doing wrong?