[R] Issue with matrices within nested for-loops

2013-02-22 Thread Jonathan Richar
Greetings! I am trying to compare simulated environmental conditions from a model against a recruitment time series for a species of crab by first dropping 5 data points, and then using the remainder to attempt to simulate the missing data as a measure of best fit and using the following code:

Re: [R] Issue with matrices within nested for-loops

2013-02-22 Thread Bert Gunter
Which I understand to mean that the bounds of the indicated vector/matrix have been violated. I am however at a loss as to how to resolve this ... Presumably because you haven't learned to use R's debugging tools. So time to learn. See the debugging Chapter of the R Language Manual and the Help