Skip to content
Prev 131721 / 398503 Next

How to read in expressions as function parameters?

Try this:

form<- scan(file = "", what = character(0), n=1,strip.white =
 TRUE,quiet=TRUE )
form2<-parse(text=form)
foo <- function(x){}
body(foo) <- form2
curve(foo,10,100)
On 09/12/2007, Alex Wang <alecwang80 at gmail.com> wrote: