I have the following list containing strings:
"list(name = c(\"Marca\", \"Condición del Ãtem\", \"Modelo\"),
value_id = c(NA, \"2230284\", NA))"
How can I tell R to understand that string as a list?
Thanks
An option is to eval
uate
eval(parse(text= str1))
#$name
#[1] "Marca" "Condición del Ãtem" "Modelo"
#$value_id
#[1] NA "2230284" NA
str1 <- "list(name = c(\"Marca\", \"Condición del Ãtem\", \"Modelo\"), value_id = c(NA, \"2230284\", NA))"