r.calc: Return Calculation

Description Usage Arguments Value Examples

View source: R/capitalR.R

Description

Return Calculation

Usage

1

Arguments

vector

Vector from which to calculate the periodic return

Value

Returns the Periodic Percent Return

Examples

1
r.calc(c(100, 75, 50, 80, 125))

Example output

[1]  0.0000000 -0.2500000 -0.3333333  0.6000000  0.5625000

capitalR documentation built on Dec. 1, 2019, 1:23 a.m.