I have this dataset where the parameter and number are strung within a quotations (`). I want to first seperate the whole text from the number. Then clean it up by getting rid of the quotations.
df <- data.frame( test = c("'+ test1 0.0553933412'", "'<All variables> 0.0553799779'", "'+ test3 0.0009441928'",
"'<none> 0.0000000000'","'+ test2 -0.0012808645'"))
I tried the following. The problem is that the numbers with text1, 2, and 3 are also getting seperated. I also want to get rid of the + and ` from both the columns
EDIT: Thanks to @GregorThomas I was able to seperate them into rows. I also want to get rid of the +, <, > and ` from both the columns
library(tidyr)
df <- df %>%
separate(test,
into = c("text", "num"),
sep = c(" {2,}")
)