ABSTRACT

R is an open-source language designed for general programming, statistical computing, graphics, and more. This chapter begins by introducing the features of R and shows how to install R together with RStudio—R’s primary integrated development environment tool. This chapter then illustrates how to navigate the RStudio environment. A small hypothetical dataset of credit card holders is employed to give examples of data manipulation using several of R’s most useful functions. Illustrations using the RStudio environment for writing and executing scripts, importing and visualizing data, and installing packages are provided. Several methods for obtaining help are presented. The end-of-chapter exercises give a hands-on experience for learning more about R.