Hi everybody,

I have the following problem, the following code seems to run only once for
i and j and for k from one to M.
Doesn't R for increase the argument by itself?

for (i in 1:N){
 for (j in 1:(Tk-1)){
  if((XGrid[i] < Xk[j+1])&(Xk[j] <= XGrid[i])){
        for (k in 1:M){
           if ((RBins[k]<=Rk[j+1])&(Rk[j+1]<RBins[k+1])){
              GR[k] <- +1
           }
        }
  }
 }
}

Thanks a lot

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to