[R] NA's values and ts

Antonio Rodríguez Verdugo rod.chav at hsoft.es
Fri Apr 6 13:56:01 CEST 2001


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.

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

>rain

       	Jan   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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list