Question: Task 1 : Data Frame Creation 1 . A high school guidance counselor puts together the following data set about different terminal college degrees. Cost
Task : Data Frame Creation
A high school guidance counselor puts together the following data set about different
terminal college degrees. Cost is the total cost in s and time is in an average in
years.
Degree
Cost Time
Associate
Undergraduate
Master
a 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 desc
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
