Using R, please calculate simple returns for AAPL and GOOGL stocks for all months for 2020, 2021 and 2022. Report the month and year for
Q3. (25 Points Total) For the following questions, use the stock datasets below. # Install and load necessary libraries install.packages ("PerformanceAnalytics", lib="../work/") install.packages ("xts", lib="../work/") install.packages ("lubridate", lib="../work/") install.packages ("tidyverse", lib="../work/") install.packages ("data.table", lib="../work/") library (PerformanceAnalytics, lib.loc="../work/") library (xts, lib.loc="../work/") library (lubridate, lib.loc="../work/") library (tidyverse, lib.loc="../work/") library (data.table, lib.loc="../work/")
Step by Step Solution
3.42 Rating (165 Votes )
There are 3 Steps involved in it
Step: 1
To calculate simple returns for AAPL and GOOGL stock...See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started