Re: [R] time series contains internal NAs error

2009-01-19 Thread Achim Zeileis
On Mon, 19 Jan 2009, Gabor Grothendieck wrote: The statement to read in the data is missing from your post but I suspect that you are representing the data as daily data so its filling in 364 or 365 NA's between points. Represent it as the annual data that it is. One further pointer: Also loo

Re: [R] time series contains internal NAs error

2009-01-19 Thread Gabor Grothendieck
The statement to read in the data is missing from your post but I suspect that you are representing the data as daily data so its filling in 364 or 365 NA's between points. Represent it as the annual data that it is. Try this: Lines <- "Sunspots,Datefield 9.5,1/1/1900 2.7,1/1/1901 5,1/1/1902 24.

Re: [R] time series contains internal NAs error

2009-01-19 Thread Achim Zeileis
On Mon, 19 Jan 2009, stephen sefick wrote: It would be helpful to have a reproducible dataset to track down what is happening. True. Although in this case it's relatively easy to guess what went wrong. The user probably has some irregular series, for example daily with missing days: x <

Re: [R] time series contains internal NAs error

2009-01-19 Thread Harsh
Very Sorry for the oversight. The dataset that I have used is: Sunspots,Datefield 9.5,1/1/1900 2.7,1/1/1901 5,1/1/1902 24.4,1/1/1903 42,1/1/1904 63.5,1/1/1905 53.8,1/1/1906 62,1/1/1907 48.5,1/1/1908 43.9,1/1/1909 18.6,1/1/1910 5.7,1/1/1911 3.6,1/1/1912 1.4,1/1/1913 9.6,1/1/1914 47.4,1/1/1915 57.1

Re: [R] time series contains internal NAs error

2009-01-19 Thread stephen sefick
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 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 func

[R] time series contains internal NAs error

2009-01-19 Thread Harsh
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" ) result