Question: Attempting to create a dataset using the tidyquat package in R for the stocks TSLA, JNJ , GOOGL, and GE for Jan 1 , 2
Attempting to create a dataset using the tidyquat package in R for the stocks TSLA, JNJ GOOGL, and GE for Jan to Dec using stocks cTSLAJNJGOOGLGE tqgetget stockprices from to Then creating an equally weighted portfollio of these stock and using the adjusted price to calculate the monthy returns for the portfolio. Please provide R code for how to do this.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
