ABSTRACT

R is available as source code from CRAN. This chapter describes the basics of getting started with R, beginning with some notes on installation and continuing with the basics of interacting with R through the command line. There are several ways to interact with R, but for us the primary one will be through the command line, also known as the console. The command line in RStudio is in the console pane. The command line is common to all of R’s interactive interfaces. The power of R goes well beyond that of a graphing calculator. One immediate difference is the ability to assign names to values. Vectorized functions R has several functions which do not summarize a collection of values with a single number, but rather do the same thing for each number. R provides the functions save and load to write representations of R objects to a file. The saved workspace is written to a file.