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, myVector and myVector
a myVector contains all the odd numbers ie and between and
b my Vector contains all the even numbers ie and between and
Calculate myVector which the sum of myVector and myVector and myVector which is the
product of myVector and myVector
Define tow matrices:
a myMatrix is the combination of myVector and myVector by columns.
b myMatrix is the combination of myVector and myVector 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 myMatrix which is in the second row of the first column.
b NumberofWorkers column in the myProjectData data frame as a numeric vector.
c ProjectCode column in the myProjectData data frame as a data frame with one
column.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
