Hi everybody,
Attached is a rough guide illustrating what I do to debug R code, which
I guess has not been emphasized by TFs for methods classes. I wrote it
mostly because people email or call me asking me to fix their R code,
and I tell them to use the debugger, and then they tell me they don't
know what I am talking about, and then I explain it to them, and then
they yell at me for not having explained it to them earlier.
The last few pages are also useful if you merely want to understand what
a R function does. If anyone has other tricks that they use, let me know.
Ben
--
Ben Goodrich
Ph.D. Student in Government and Social Policy
goodrich(a)fas.harvard.edu
http://www.people.fas.harvard.edu/~goodrich