[R] NA's values and ts

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Apr 6 14:03:15 CEST 2001


On Fri, 6 Apr 2001, Antonio [iso-8859-1] Rodríguez Verdugo wrote:

> Hi,
>
> I have a data frame with 13 time series (same length). Two of them have
> several NA's values, so when I've tried to run:
>
> >acf(flow, na.action=na.omit)
>
> I get
>
> >Error in na.omit.ts(as.ts(x)) : time series contains internal NAs
>
> I've read through help files of acf, na.action, na.omit, and I don't
> understand how to manage NA's values.

You can't do much, but try reading the help page for na.omit.ts (not
na.omit) and see also (the same page)

?na.contiguous

> If I list the variable (eg: rain, I get the following structure, is OK?)

You can't handle that at all well.  R's code is not set up to handle
time series with many missing values.  Find a package that does (and most
that I know of do not).

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list