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. ______________________________________________ R-help@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.