Skip to content

Difficulties with for() {while(){}}

1 message · Ronaldo Reis-Jr.

#
Em Qua 16 Nov 2005 11:30, jim holtman escreveu:
Hi,

this is not a real error, is a situation whitout a resolution.

Is, I try to test the condition and restart, but how to restart all?

Matthias suggest the use of initialize, I dont undertande how to use this.

I try this:

myfunction <- function(...) {

  ## Init of function
  ...

  for(i in test) {
    ...

    while(j <= test2) {
    ...
      test3 <- make a test 
      if(test3 == error) {
      myfunction(...)
      }
    }
  }
}

This is the best way to make this?

In this case I need to put all arguments initialized in function(...) on the 
myfunction(...) .

Thanks
Ronaldo