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 NAsI've read through help files of acf, na.action, na.omit, and I don't understand how to manage NA's values. If I list the variable (eg: rain, I get the following structure, is OK?)>rainJan Feb Mar Apr May Jun Jul Aug Sep 1984 52.0 5.9 0.0 0.0 50.5 1985 261.8 124.6 5.0 122.5 24.1 46.9 0.0 0.0 NA 1986 82.9 125.6 119.1 107.7 64.6 NA 0.0 0.0 6.1 . . . Thanks in advance Antonio Antonio Rodr?guez Verdugo CICEM Agua del Pino Huelva Oceanography and Coastal Resources, PhD Program, University of Huelva -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hi,>You can't do much, but try reading the help page for na.omit.ts (not >na.omit) and see also (the same page)I've done, and nothing> >?na.contiguousDoesn't work>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).In variable 'rain' I have 7 NA values, are them too much?. And if so, which would be a plausible approach to this kind of time series data? Thanks, Cheers Antonio Antonio Rodr?guez Verdugo CICEM Agua del Pino Huelva Oceanography and Coastal Resources, PhD Program, University of Huelva -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._