Skip to content

Issue with matrices within nested for-loops

2 messages · Jonathan Richar, Bert Gunter

#
... 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