trim.na
Trim NAs from time series matrix
Description
Trim NAs from the ends of a time series matrix or TSdata object.
Usage
trim.na(obj, Start=T, End=T)
Required Arguments
- obj
-
A time series matrix or an object of class TSdata.
Optional Arguments
- Start
-
If Start=F then beginning NAs are not trimmed.
- End
-
If End=F then ending NAs are not trimmed.
Value
A time series matrix which is windowed to the subset of available data.
Details
Trim NAs from the ends of a time series matrix.
Observations for all series are dropped if any one contains an NA.
Examples
return to Table of Contents