Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using R Studio create a vector for DISNEY's closing stock price for the last 10 trading days and populate the vector with the appropriate data
Using R Studio
- create a vector for DISNEY's closing stock price for the last 10 trading days and populate the vector with the appropriate data (from earliest to most recent).
- create a second vector for WARNER BROTHER's closing stock price for the last 10 trading days and populate the vector with the appropriate data (from earliest to most recent).
- Using the "seq" command, create a vector that contains the numbers 1 through 10. Name the vector "Period."
- Combine the three vectors above into a Matrix. Ensure that "Period" is in the left-most column. Name the Matrix "StocksLast10Days.mat."
- Copy "StocksLast10Days.mat" to a data frame. Name the new data frame "StocksLast10Days.dat."
- Summarize the "StocksLast10Days.dat" data frame using an appropriate R command(s).
- Export the "StocksLast10Days.dat" data frame to a .csv file. Name the file "StocksLast10Days.csv."
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
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