Regularize: Regularize the index of a daily xts by adding NAs to...

Description Usage Arguments Examples

Description

Regularize the index of a daily xts by adding NAs to non-existent days

Usage

1

Arguments

xts

the xts object to regularize

Examples

1
2
3
4
library(Quandl)
library(magrittr)
Quandl("GOOG/VTX_UBSN", type = "xts", force_irregular = TRUE) %>%
Regularize %>% na.locf -> ubs

gluc/datapR documentation built on May 17, 2019, 6:41 a.m.