[R] Partial loop?

Hesen Peng hesen.peng at emory.edu
Sat Jun 27 08:23:23 CEST 2009


My dear R buddies,

I'm writing a loop program like this:

for(i in 1:n){
   for(j in 1:i){
    ...
   }
}

I wonder if there is any simple apply()-like function to make the loop
a little bit easier and faster. Thanks a lot.

Best wishes,

-- 
彭河森 Hesen Peng
http://hesen.peng.googlepages.com/




More information about the R-help mailing list