Question: write R code to create the following vectors: 1. name of the vector: StudentNames ; values in the vector: Gene, Sam, Jess, Alex, Justin 2.

write R code to create the following vectors:

1. name of the vector: StudentNames; values in the vector: Gene, Sam, Jess, Alex, Justin

2. name of the vector: GPA; values in the vector: 3.5, 4.0, 3.2, 3.7, 3.5

3. name of the vector: Major; values in the vector: ACCTG, FIN, BSAN, BSAN, MKTG

Write R code to create a data frame (name of the data frame should be classBSAN) using the vectors created in Question 1.

What is the class of "Major" column in your "classBSAN" data frame?

Write an R code to list all the levels in the "Major" column.

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!