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....@cbs.dk  Priv: pda...@gmail.com
"Døden skal tape!" --- Nordahl Grieg

______________________________________________
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.

Reply via email to