change_freq_na: Change frequency in time-series with missing values

Description Usage Arguments Value Note

View source: R/TimeSeries.R

Description

Change frequency in time-series with missing values

Usage

1
change_freq_na(x, period, dtype)

Arguments

x

xts object

period

character to represent desired frequency

dtype

character to specify if x is a 'return' or 'price' time-series

Value

xts object with new period

Note

The missing values are filled with either 0 for returns and the most recent (i.e., lagged) non-missing value for prices.


alejandro-sotolongo/InvestR documentation built on Jan. 9, 2021, 2:20 p.m.