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@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....@cbs.dk Priv: pda...@gmail.com ______________________________________________ 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.