Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!