naWindow {tis}R Documentation

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

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.

Value

A copy of x with leading and trailing NA observations deleted.

See Also

window


[Package tis version 1.5 Index]