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.
Download sample file and data
https://payhip.com/b/43jDM
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.
Watch video Calculate Daily, Weekly, Monthly Stock Return in R online without registration, duration hours minute second in high quality. This video was added by user The Data Hall 09 May 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 620 once and liked it 4 people.