ts_regular: Enforce Regularity

Description Usage Arguments Examples

View source: R/ts_regular.R

Description

Enforces regularity in data frame and xts objects, by turning implicit NAs into explicit NAs. In ts objects, regularity is automatically enforced.

Usage

1

Arguments

x

a ts-boxable time series

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
x0 <- AirPassengers
x0[c(10, 15)] <- NA
x <- ts_na_omit(ts_dts(x0))
ts_regular(x)

m <- mdeaths
m[c(10, 69)] <- NA
f <- fdeaths
f[c(1, 3, 15)] <- NA

ts_regular(ts_na_omit(ts_dts(ts_c(f, m))))

christophsax/tsbox documentation built on June 26, 2018, 1:13 p.m.