Re: [R] subloop - flexible coding - variable number of loops

2011-01-27 Thread David Winsemius
On Jan 27, 2011, at 6:29 PM, Peter Jaksons wrote: Hello, I want to create a flexible code for the following example: In stead of using a different code for each n (as in my example below), I want to write a general code for every n (n from 1 to 10). Have you done any thinking about the

[R] subloop - flexible coding - variable number of loops

2011-01-27 Thread Peter Jaksons
Hello, I want to create a flexible code for the following example: In stead of using a different code for each n (as in my example below), I want to write a general code for every n (n from 1 to 10). I tried a lot of things, but I always got stuck with the number of subloops or witch closing t