Skip to main content Accessibility help
×
Hostname: page-component-76fb5796d-9pm4c Total loading time: 0 Render date: 2024-04-25T18:51:43.891Z Has data issue: false hasContentIssue false

1 - A brief introduction to R

Published online by Cambridge University Press:  05 October 2013

John Maindonald
Affiliation:
Australian National University, Canberra
W. John Braun
Affiliation:
University of Western Ontario
Get access

Summary

This first chapter introduces readers to the basics of R. It provides the minimum of information that is needed for running the calculations that are described in later chapters. The first section may cover most of what is immediately necessary. The rest of the chapter may be used as a reference. Chapter 14 extends this material considerably.

Most of the R commands will run without change in S-PLUS.

An overview of R

A short R session

R must be installed!

An up-to-date version of R may be downloaded from a Comprehensive R Archive Network (CRAN) mirror site. There are links at http://cran.r-project.org/. Installation instructions are provided at the web site for installing R in Windows, Unix, Linux, and version 10 of the Macintosh operating system.

For most Windows users, R can be installed by clicking on the icon that appears on the desktop once the Windows setup program has been downloaded from CRAN. An installation program will then guide the user through the process. By default, an R icon will be placed on the user's desktop. The R system can be started by double-clicking on that icon.

Various contributed packages extend the capabilities of R. A number of these are a part of the standard R distribution, but a number are not. Many data sets that are mentioned in this book have been collected into our DAAG package that is available from CRAN sites. This and other such packages can be readily installed, from an R session, via a live internet connection. Details are given below, immediately prior to Subsection 1.1.2.

Type
Chapter
Information
Data Analysis and Graphics Using R
An Example-Based Approach
, pp. 1 - 42
Publisher: Cambridge University Press
Print publication year: 2010

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • A brief introduction to R
  • John Maindonald, Australian National University, Canberra, W. John Braun, University of Western Ontario
  • Book: Data Analysis and Graphics Using R
  • Online publication: 05 October 2013
  • Chapter DOI: https://doi.org/10.1017/CBO9781139194648.004
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • A brief introduction to R
  • John Maindonald, Australian National University, Canberra, W. John Braun, University of Western Ontario
  • Book: Data Analysis and Graphics Using R
  • Online publication: 05 October 2013
  • Chapter DOI: https://doi.org/10.1017/CBO9781139194648.004
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • A brief introduction to R
  • John Maindonald, Australian National University, Canberra, W. John Braun, University of Western Ontario
  • Book: Data Analysis and Graphics Using R
  • Online publication: 05 October 2013
  • Chapter DOI: https://doi.org/10.1017/CBO9781139194648.004
Available formats
×