[R] how to know perfect execution of function ? & if error occurred in execution, how to report it?
Jim Holtman
jholtman at gmail.com
Fri Mar 23 10:29:38 CET 2012
?try
Sent from my iPad
On Mar 23, 2012, at 3:32, sagarnikam123 <sagarnikam123 at gmail.com> wrote:
> 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 at 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.
More information about the R-help
mailing list