Displaying 1 result from an estimated 1 matches for "c_2tamp".
Did you mean:
_2tap
2012 Aug 11
1
using eval to handle column names in function calling scatterplot graph function
...main =
paste(yvar," by ",xvar, sep=""), xlab = xvar, ylab = yvar)
scatterplot(eval(parse(text = yvar))~eval(parse(text = xvar)),
boxplots='xy', data=subdf, main = "Testcase_ID=142")
}
When I execute the function:
plotvar(mydf,mydf$PARMNAME, "C_2TAMP","Amp_2T","C1")
everything seems to work until the scatterplot statement. It posts this
error:
Error in parse(text = yvar) : object 'yvar' not found
However, when I insert browser() statement before the scatterplot
statement:
Browse[1]> ls()
[1] "...