Re: [R] Apply parameters to a function from a list

2011-02-04 Thread Florian Burkart
Of course. Thanks. On 04/02/2011 18:32, Greg Snow wrote: Try: do.call(test,point) __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and pro

Re: [R] Apply parameters to a function from a list

2011-02-04 Thread Greg Snow
t; Sent: Friday, February 04, 2011 7:36 AM > To: r-help@r-project.org > Subject: [R] Apply parameters to a function from a list > > Hey, > > this may be a simple question, but I am struggling to apply a list of > parameters to a function. > > > Say I have the followin

Re: [R] Apply parameters to a function from a list

2011-02-04 Thread Henrique Dallazuanna
Try this: do.call(test, point) On Fri, Feb 4, 2011 at 12:35 PM, Florian Burkart wrote: > Hey, > > this may be a simple question, but I am struggling to apply a list of > parameters to a function. > > > Say I have the following function: > > test<-function(a=1,b=2,c=3,d=4){a+b+c+d} > > And the f

[R] Apply parameters to a function from a list

2011-02-04 Thread Florian Burkart
Hey, this may be a simple question, but I am struggling to apply a list of parameters to a function. Say I have the following function: test<-function(a=1,b=2,c=3,d=4){a+b+c+d} And the following list: point<-list(a=3,d=2) Is there a way I can evaluate function test at point? (Apart fro