powered by
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
rr(x,n)
:a vector of company prices
: number of lags
# NOT RUN { #rr(aapl,1) # }
Run the code above in your browser using DataLab