powered by
Trim NAs from the start and end of a time series object.
trimNA(x, startNAs=TRUE, endNAs=TRUE) # S3 method for default trimNA(x, startNAs=TRUE, endNAs=TRUE)
A time series matrix or an object of class TSdata.
If FALSE then beginning NAs are not trimmed.
If FALSE then ending NAs are not trimmed.
A time series object which is windowed to the subset of data which is not NAs (usually the available data).
Trim NAs from the ends of a time series object. Observations in a given period for all series are dropped if any one contains an NA.
# NOT RUN { trimNA(ts(rbind(NA, matrix(1:20,10,2)), start=c(1980,1), frequency=12)) # }
Run the code above in your browser using DataLab