[R] time series contains internal NAs error

stephen sefick ssefick at gmail.com
Mon Jan 19 15:20:43 CET 2009


It would be helpful to have a reproducible dataset to track down what
is happening.

On Mon, Jan 19, 2009 at 3:45 AM, Harsh <singhalblr at gmail.com> wrote:
> Hello R List,
> I seem to have a peculiar problem. When using  time series data, I get
> the following error when running the acf and pacf function.
> Using the function acf(dtxts,plot= TRUE,xaxt = "n",col="red",na.action
> = na.omit) (where dtxts is a time series object created with package
> "xts" ) results in the error below.
>
> Error in na.omit.ts(as.ts(x)) : time series contains internal NAs
>
> The above error is seen in R 2.8.0 running on Linux.
>
> The same function does not yield any error in R 2.8.0 on a Windows system.
>
>
> I've also tried na.remove(dtxts) from the "tseries" package to solve
> this problem but to no avail.
>
> Thank you.
>
> Harsh Singhal
> Decision Systems
> Mu Sigma Inc.,
>
> ______________________________________________
> 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.
>



-- 
Stephen Sefick

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis




More information about the R-help mailing list