Calculate Daily, Weekly, Monthly Stock Return in R
May 16, 2024
To perform an analysis on stock return, we first need to calculate it. In this video we are going to calculate daily, weekly, and monthly stock returns in R. We use quantmod package to download the stock prices and then calculate stock return using xts, tidyverse and tidyquant package.
00:00 Download data from yahoo
4:12 Load stock prices from csv
7:33 Calculate stock return in xts
11:03 Calculate stock return in tidyverse
17:05 Calculate stock return in tidyquant
Website: thedatahall.com
As an Amazon Associate, I earn from qualifying purchases.
Show More Show Less #Finance
#Investing
#Stocks & Bonds


