Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an R script to answer 8(a)-(c). For 8(c) use R comments (i.e., using #) for your answer. 8. This exercise relates to the College

image text in transcribed

image text in transcribed

Create an R script to answer 8(a)-(c). For 8(c) use R comments (i.e., using "#") for your answer.

8. This exercise relates to the College data set, which can be found in the file College.csv. It contains a number of variables for 777 different universities and colleges in the US. The variables are Private : Public/private indicator Apps : Number of applications received Accept: Number of applicants accepted Enroll Number of new students enrolled . Top10perc : New students from top 10% of high school class . Top25perc : New students from top 25% of high school class F.Undergrad : Number of full-time undergraduates P.Undergrad: Number of part-time undergraduates Outstate : Out-of-state tuition Room.Board Room and board costs Books: Estimated book costs Personal Estimated personal spending PhD Percent of faculty with Ph.D.'s Terminal : Percent of faculty with terminal degree S.F.Ratio : Student/faculty ratio perc.alumni : Percent of alumni who donate Instructional expenditure per stu dent e Grad.Rate Graduation rate Before reading the data into R, it can be viewed in Excel or a text editor (a) Use the read.csv) function to read the data into R. Call the loaded data college. Make sure that you have the directory set to the correct location for the data. b) Look at the data using the fix) function. You should notice that the first column is just the name of each university. We don't really want R to treat this as data. However, it may be handy to have these names for later. Try the following commands

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions

Question

What is something that makes you really angry?

Answered: 1 week ago