Skip to content
Prev 106436 / 398513 Next

How to use strings from a data.frame as the argument of an expression() for plot

Just store them as strings in the data frame and then perform a conversion
to expressions prior to the loop:


DF <- data.frame(s = c("O[3]", "NO", "NO[2]"), stringsAsFactors = FALSE)
e <- parse(text = DF$s)
... continue with prior solution ...
On 12/20/06, MrJ Man <auxsvr at yahoo.com> wrote: