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.
- 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).
- 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).
- 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).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
