[R] Avoiding loops

hadley wickham h.wickham at gmail.com
Wed Sep 2 16:25:03 CEST 2009


> Would like some tips on how to avoid loops as I know they are slow in R

They are not slow.  They are slower than vectorised equivalents, but
not slower than apply and friends.

Hadley

-- 
http://had.co.nz/




More information about the R-help mailing list