Calculate Portfolio Return in R

Опубликовано: 18 Февраль 2026
на канале: The Data Hall
356
1

In our previous video we discussed how to download stock prices data using qountmod package and then we calculated weekly, monthly, yearly stock return using xts, tidyverse and tidyquant package. In this video we are going to discuss how to calculate portfolio return using xts package, tidyverse package and tidyquant package.

Download code and sample data
https://payhip.com/b/3HeVD


00:00 Load the data
1:55 Portfolio Return (Manually)
2:54 Portfolio Return using xts package
6:40 Portfolio Return using tidyverse package
10:03 Portfolio Return using tidyquant package



Website: thedatahall.com
As an Amazon Associate, I earn from qualifying purchases.