Learn R Programming

fame (version 1.13)

naWindow: Exclude NA Observations

Description

Windows a tis or ts time series to cut off leading and trailing NA observations.

Usage

naWindow(x, union = F)

Arguments

x
a tis or ts time 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.

See Also

window