Skip to Content
R in a Nutshell
book

R in a Nutshell

by Joseph Adler
January 2010
Beginner
634 pages
19h 50m
English
O'Reilly Media, Inc.
Content preview from R in a Nutshell

Chapter 3. A Short R Tutorial

This chapter contains a short tutorial of R with a lot of examples.

If you’ve never used R before, this is a great time to start it up and try playing with it. There’s no better way to learn something than by trying it yourself. You can follow along by typing in the same text that’s shown in the book. Or, try changing it a little bit to see what happens. (For example, if the sample code says 3 + 4, try typing 3 - 4 instead.)

Warning

If you’ve never used an interactive language before, take a look at Chapter 2 before you start. That chapter contains an overview of the R environment, including the console. Otherwise, you might find the presentation of the examples—and the terminology—confusing.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

R in a Nutshell, 2nd Edition

R in a Nutshell, 2nd Edition

Joseph Adler
The Big R-Book

The Big R-Book

Philippe J. S. De Brouwer
R Packages

R Packages

Hadley Wickham

Publisher Resources

ISBN: 9781449377502Supplemental ContentErrata Page