Displaying 1 result from an estimated 1 matches for "mycurveb".
Did you mean:
mycurve
2010 Jan 20
1
function curve() (PR#14191)
...ylab <- deparse(sexpr)
}
Example:
# use curve()
mycurveA <-
function(x,from=1,to=10){
xloc <- parse(text=x)
# call("mycurve0",expr=xloc,from=from,to=to)
do.call("curve",list(expr=xloc,from=from,to=to))
}
# use curve modified as suggested above.
mycurveB <-
function(x,from=1,to=10){
xloc <- parse(text=x)
# call("mycurve0",expr=xloc,from=from,to=to)
do.call("mycurve0",list(expr=xloc,from=from,to=to))
}
> mycurveA("x^2")
Error in curve(expr = expression(x^2), from = 1, to = 10) :
'expr' m...