[R] on "do.call" function

peter dalgaard pdalgd at gmail.com
Tue Aug 9 11:30:43 CEST 2011


On Aug 9, 2011, at 09:44 , Kathie wrote:

> I understood that the "function" has to be vectorized.
> 
> I was just wondering which one is faster.
> 

do.call is as fast as just calling the function. If you need to Vectorize() the function first, then that in itself inserts a mapply() call, so you're not saving anything. 

> Thanks
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/on-do-call-function-tp3727262p3729234.html

No! Nabble does not own this list. Please include context.

> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at 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.

-- 
Peter Dalgaard, Professor
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list