[R] how to know perfect execution of function ? & if error occurred in execution, how to report it?

sagarnikam123 sagarnikam123 at gmail.com
Fri Mar 23 08:32:21 CET 2012


i have one for loop,in which i am dealing with time series & arima function,
while iterating at some stage there is a error, like

Error in arima(x, c(p, 0, q)) : non-stationary AR part from CSS

i want to know at which step this error occurred & print that iterating
number

e.g.
x<-c(1:10)
for (i in 1:5 ){
z<-arima(x[i])
print(z)
}

if error occurred in arima function at i=3 step, it should report & execute
complete loop until i=5

--
View this message in context: http://r.789695.n4.nabble.com/how-to-know-perfect-execution-of-function-if-error-occurred-in-execution-how-to-report-it-tp4498037p4498037.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list