rr: Calculating rate of return of a vector

Description Usage Arguments Examples

View source: R/rr.R

Description

Calculating the rate of return of a vector for further analysis, including calculating beta of companies, plotting to see the trend of the stock for technical analysis

Usage

1
rr(x,n)

Arguments

x

:a vector of company prices

n

: number of lags

Examples

1
#rr(aapl,1)

FinAna documentation built on May 2, 2019, 2:51 p.m.

Related to rr in FinAna...