Indeed, that's all I need. Thanks!

On Sun, Oct 19, 2008 at 11:09 PM, Kaom Te <sickfaichezi@gmail.com> wrote:

> I believe you want
>
> do.call(f, list(a =..., b=...))
>
> ?do.call
> -Kaom
>
> On Oct 19, 2008, at 7:55 PM, erwann rogard wrote:
>
>  hi,
>>
>> say i have a function f and i'd like to to call it like this:
>>
>> 1) f(list(a=...,b=...))
>>
>> but i can't do it, because f is defined as:
>>
>> 2) f<-function(a=NULL,b=NULL){...}
>>
>> is there a way that i can approximate 1), such as mapping
>> list(a=,...b=...)
>> to "list(a=,...b=...)" and then replacing "list" by "f", and then
>> evaluating
>> the expression?
>>
>> thanks.
>>
>>        [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> 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 provide commented, minimal, self-contained, reproducible code.
>>
>
>

	[[alternative HTML version deleted]]

