Question: The purpose of this assignment is to complete data entry and import and export data using statistical language software. Prior to completing this assignment, perform

The purpose of this assignment is to complete data entry and import and export data using statistical language software.

Prior to completing this assignment, perform the following commands in R Studio to load "The R Stats Package": install.packages("stats") followed by library("stats").

Complete the assignment parts below in R Studio.

  1. For a company of your choice, create a vector of the company's closing stock price for the last 10 trading days and populate the vector with the appropriate data (from earliest to most recent).
  2. For another company of your choice, create a second vector of the company's closing stock price for the last 10 trading days and populate the vector with the appropriate data (from earliest to most recent).
  3. Using the "seq" command, create a vector that contains the numbers 1 through 10. Name the vector "Period."
  4. Combine the three vectors above into a Matrix. Ensure that "Period" is in the left-most column. Name the Matrix "StocksLast10Days.mat."
  5. Copy "StocksLast10Days.mat" to a data frame. Name the new data frame "StocksLast10Days.dat."
  6. Summarize the "StocksLast10Days.dat" data frame using an appropriate R command(s).

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 Finance Questions!