excess_ret: Subtract risk-free from returns

Description Usage Arguments Value

View source: R/TimeSeries.R

Description

Subtract risk-free from returns

Usage

1
excess_ret(x, rf, period = NULL)

Arguments

x

xts object of returns

rf

xts object with the risk-free return time-series

period

optional period to change the frequency, default value of NULL will not change the frequency and leave the time-series as is

Value

xts object containing x less rf


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