Can a string of the form below be evaluated so that it is equivalent to the same \"literal\" expression?
Example data and code:
df.name = data.frame(col1
You are almost there:
> eval(parse(text = var1)) [1] "D"
Because parse expecting file by default, you need to specify the text parameter.
text