Rdocumentation
powered by
Learn R Programming
FinAna (version 0.1.1)
rr: Calculating rate of return of a vector
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
rr(x,n)
Arguments
x
:a vector of company prices
n
: number of lags
Examples
Run this code
#rr(aapl,1)
Run the code above in your browser using
DataLab