[R] Issue with matrices within nested for-loops

Bert Gunter gunter.berton at gene.com
Sat Feb 23 06:54:15 CET 2013


> 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 files of the referenced functions. Also ?recover and set
the error option as described there so you can browse in the frame in
which the error was triggered. Also check ?traceback

Someone (but not me!) may have the patience to go thru your code and
pick out the error(s); but if you write code, you need to learn how to
debug code for yourself instead of posting to the list every time.
Consider it part of your doctoral training.

Cheers,
Bert


>
> Jonathan Richar
> Doctoral candidate
> UAF SFOS Fisheries Division
> 17101 Pt. Lena Loop Rd.
> University of Alaska Fairbanks
> Juneau, AK 99801
> Phone: (907) 796-5459
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm



More information about the R-help mailing list