Question: Open a blank R Script file and do the following: Define two vectors, myVector 1 and myVector 2 . a . myVector 1 contains all

Open a blank R Script file and do the following:
Define two vectors, myVector1 and myVector2.
a. myVector1 contains all the odd numbers (i.e.1,3,5,7 and 9) between 1 and 9.
b. my Vector2 contains all the even numbers (i.e.2,4,6 and 8) between 1 and 9.
Calculate myVector3 which the sum of myVector1 and myVector2, and myVector4 which is the
product of myVector1 and myVector2.
Define tow matrices:
a. myMatrix1 is the combination of myVector1 and myVector3 by columns.
b. myMatrix2 is the combination of myVector1 and myVector 4 by rows.
Create a list called myList. The list contains two elements called "Student" and "Courses":
a. "Student" is a character vector that contains your name and your student ID.
b. "Courses" is a character vector that contains the classes you registered for this semester.
Create a data frame called myProjectData. Fill the data frame with the data shown in the table
below.
Add two lines of code to display the following:
a. Display the element of myMatrix1 which is in the second row of the first column.
b. Number_of_Workers column in the myProjectData data frame as a numeric vector.
c. Project_Code column in the myProjectData data frame as a data frame with one
column.
Open a blank R Script file and do the following:

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