Displaying 1 result from an estimated 1 matches for "acessmyt".
2011 Jun 15
2
Escape sequence in eval ()
.... I
can't escape it with the backslash \ ...
Example:
I can access my data frame via
TABLE$"2011-01-02"$columnD
Now I want to do this automatically.. (with a for loop)..
a <- TABLE
b <- " \"2011-01-02\" "
c <- "columnD"
acessmytable <- paste(a,b,c, sep="$")
parse(text="accessmytable")
eval(accessmytable)
It will return
[1] "TABLE$\"2011-01-02\"$close"
but I need
TABLE$"2011-01-02"$close
I highly appreciate your help!
Sincerely,
Franc
BS Stud...