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

In this recipe, we will illustrate the technique of PCA using the USArrests dataset that contains crime-related statistics, such as Assault, Murder, Rape, and UrbanPop, per 100,000 residents in 50 states in the US.

If you have not already downloaded the files for this chapter, do so now and ensure that the USArrests.csv file is in your R working directory. 

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