[R] Error: subscript out of bounds

From: Marie-Pierre Sylvestre <marie-pierre.sylvestre_at_mail.mcgill.ca>
Date: Wed 21 Jul 2004 - 04:12:54 EST


I am running a simulation that involves a loop calling three 2 functions that I have written. Everything works fine when the inside of the loop is performed up to 1000 times (for (i in 1:750)).

However, I sometimes get : ''Error: subscript out of bounds'' if I try to increase the loop 'size' to 1000. I am thinking it has to to with memory but I am not sure. I have increased my memory size to 512M but it does not solve my problem.

It would take to much place to copy and paste my code here. It would be helpful if you could tell me whether my problem may or may not be related to memory size.

Beside, what's the difference between

     Error: subscript out of bounds
     Error: subscript out of range  ?


M-P Sylvestre

        [[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jul 21 04:19:47 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:37:15 EST