Learn R Programming

avfintools (version 0.1.0)

ret_to_cr: Total return to cumulative return

Description

The cumulative percentage is the addition of subsequent total daily returns.

Usage

ret_to_cr(list_of_returns)

Value

A vector in dataframe format cumulative percentage returns

Arguments

list_of_returns

Vector in dataframe showing returns

Examples

Run this code
ret_to_cr(SPYdaily$returns)

Run the code above in your browser using DataLab