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

Description Usage Arguments Examples

View source: R/functions.R

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 14, 2017, 12:55 p.m.