1
I have the two columns below and I need to separate them so that the digits are in other columns. The idea is to have at the end 4 columns with names of teams and score.
Two columns of df2 type Character:
Time1 Time2
Green Bay 35 Kansas City 10
Green Bay 33 Oakland 14
I need the digits to be separate, but when I use the function below, it eats a digit and returns me only "3" and not "35" for example:
df3 <- df2 %>%
separate(Time1, into = c("Time", "Score"), sep = "\\d",
extra = "merge")
They know some way to fix?
Thank you.