Learn R Programming

avfintools (version 0.1.0)

trtomr: Total return to multiplicative return

Description

Multiplicative returns are always comparative to the earliest return

Usage

trtomr(df)

Value

A vector in dataframe format cumulative multiplicative returns

Arguments

df

Dataframe with daily data

Examples

Run this code
trtomr(SPYdaily)

Run the code above in your browser using DataLab