eval - What is the opposite of dput() in R? -


i have function reason returns a set of characters in same way dput() does, i.e "c("a","b","c")". how character vector. i.e [1] "a" "b" "c"

see following toy example

x = c("a", "b", "c") dpx = dput(x) 

how dpx x again?

you can this:

eval(parse(text = "c(\"a\",\"b\",\"c\")")) 

but better idea fix output of function.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -