O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting ready

Install the FNN, dummies, caret, and scales packages if you do not already have them installed. If you have not already downloaded the data files for this chapter, do so now and ensure that the education.csv file is in the R working directory. The file has data about several school districts in the US. The following table describes the variables:

Variable

Meaning

state

US state code

region

Region of the country (1 = NE, ...)

urban

Number of residents per thousand residing in urban areas in 1970

income

Per capita personal income in 1973

under 18

Number of residents per thousand under 18 years of age in 1974

expense

Per capita expenditure on public education in a state, projected for 1975 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required