Question: From this problem on , you will use RStudio to answer the following questions. Create a vector named Sports and assign the following values to

From this problem on, you will use RStudio to answer the following questions.
Create a vector named Sports and assign the following values to it: "Basketball", "Football", "Tennis", "Swimming".
a) Print the 2 element in the vector. Copy the results in Console as your answer without any edits. (e.g.,[1] "Basketball")
Question Blank 1 of 2
type your answer...
b) Convert the vector Sports to a factor named Sports_factor. Print Sports_factor. The value with the highest level in the factor is
Question Blank 2 of 2
type your answer...
.

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!