Windows a tis series to cut off leading and trailing
NA observations.
Usage
naWindow(x, union = F)
Arguments
x
a tis time indexed series
union
see details below
Value
A copy of x with leading and trailing NA observations deleted.
Details
For multivariate (multiple columns) series and union = TRUE, a
row of x is considered to be NA if and only if all entries in
that row are NA. If union = FALSE (the default), a row is
considered to be NA if any of its entries is NA.