[R] on "do.call" function
peter dalgaard
pdalgd at gmail.com
Tue Aug 9 08:47:05 CEST 2011
On Aug 9, 2011, at 02:38 , Kathie wrote:
> Thanks a lot all of you
>
> Yes, you're right.
>
> However, as i know, "do.call" calls its function once, but "apply(or sapply
> etc)" not. So, I think do.call is faster than apply. That's why i am trying
> to use do.call.
>
> Am I right??
You're not getting the main point: That can only work if the _function_ is vectorized, and yours is not. Please reread earlier posts.
--
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
"Døden skal tape!" --- Nordahl Grieg
More information about the R-help
mailing list