Skip to content

How to read in expressions as function parameters?

3 messages · Alex Wang, Henrique Dallazuanna, Alexwang

#
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:

  
    
#
Thanks a lot!
Henrique Dallazuanna wrote: