Calculate Daily, Weekly, Monthly Stock Return in R

preview_player
Показать описание
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

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

As an Amazon Associate, I earn from qualifying purchases.
Рекомендации по теме
Комментарии
Автор

Not clear, A bit fast. For beginners, its not a suitable video

r.namratha