Question: Create a vector called degree consisting of the words Associate, Undergraduate, Master. ( b ) Create a vector called cost consisting of the cost values
Create a vector called degree consisting of the words Associate, Undergraduate,
Master.
b Create a vector called cost consisting of the cost values as numbers.
c Create a vector called time consisting of the times as numbers.
d Combine those three vectors to create a data frame called education.
e The average cost for a PhD in s is with an average time of years.
Create a vector called phd consisting of these values degree cost time
f Add phd as a row to education. Make sure you work with the data frame you
previously created, and not the original vectors.
g Determine the variable type of each variable in education and describe any issues,
if any, you observe. Include any code used and include your values as a comment.
h Convert each variables to an appropriate type numeric character, factor, or ordered
factor within the data frame. For each type you chose, explain why you picked that
type. Include your values as a comment. Notice the different rankings of the Degree a
person can obtain. Hint: Here is a list of functions you might use in your conversions:
asnumeric ascharacter factor ordered
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
