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
Post a Comment