[R] Nested for loops

Michael Knudsen micknudsen at gmail.com
Tue Jul 14 08:20:01 CEST 2009


On Tue, Jul 14, 2009 at 8:03 AM, Moshe Olshansky<m_olshansky at yahoo.com> wrote:

> Make it
> for (i in 1:9)

Thanks. That's also how I solved the problem myself. I just somehow
think it makes my code look rather clumsy and opaque. Maybe I just
have to get used to this kind of nasty tricks.

> This is not the general solution, (...)

What do you mean? It looks a like a very general solution to me.

-- 
Michael Knudsen
micknudsen at gmail.com
http://lifeofknudsen.blogspot.com/




More information about the R-help mailing list