Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Errors

When an error occurs the message may not always be as insightful as one would like. The traceback function can be used to review the sequence of function calls that lead to the error:

> fun1 <- function(v){fun2(v)}
> fun2 <- function(v){x.no.name + y.other.name}
> fun1(10)
Error in fun2(v) : object "x.no.name" not found
> traceback()
2: fun2(v)
1: fun1(10)



Copyright © 2004-2006 [email protected]
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware.