Learn R Programming

capitalR (version 1.3.0)

r.calc: Return Calculation

Description

Return Calculation

Usage

r.calc(vector)

Arguments

vector

Vector from which to calculate the periodic return

Value

Returns the Periodic Percent Return

Examples

Run this code
# NOT RUN {
r.calc(c(100, 75, 50, 80, 125))
# }

Run the code above in your browser using DataLab