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 1: Data Frame Creation
1. A high school guidance counselor puts together the following data set about different
terminal college degrees. Cost is the total cost (in 1,000s) and time is in an average in
years.
Degree
Cost Time
Associate
22.5
Undergraduate 72.3
2.2
4.4
Master
66.8
2.1
(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 1,000s) is 111.9 with an average time of 5.8 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 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!