R Quick Syntax Reference

A Pocket Guide to the Language, APIs and Library

  • MargotĀ Tollefson

Table of contents

  1. Front Matter
    Pages i-xvii
  2. R Basics

    1. Front Matter
      Pages 1-1
    2. Margot Tollefson
      Pages 3-11
    3. Margot Tollefson
      Pages 13-19
    4. Margot Tollefson
      Pages 21-39
  3. Kinds of Objects

    1. Front Matter
      Pages 41-41
    2. Margot Tollefson
      Pages 43-72
    3. Margot Tollefson
      Pages 73-109
  4. Functions

    1. Front Matter
      Pages 111-111
    2. Margot Tollefson
      Pages 113-120
    3. Margot Tollefson
      Pages 121-138
    4. Margot Tollefson
      Pages 139-150
  5. I/O and Manipulating Objects

    1. Front Matter
      Pages 151-151
    2. Margot Tollefson
      Pages 153-186
    3. Margot Tollefson
      Pages 187-204
    4. Margot Tollefson
      Pages 205-250
  6. Flow control

    1. Front Matter
      Pages 251-251
    2. Margot Tollefson
      Pages 253-258
    3. Margot Tollefson
      Pages 259-275
    4. Margot Tollefson
      Pages 277-284
  7. Some Common Functions, Packages and Techniques

    1. Front Matter
      Pages 285-285
    2. Margot Tollefson
      Pages 287-302
    3. Margot Tollefson
      Pages 303-345
    4. Margot Tollefson
      Pages 347-356
  8. Back Matter
    Pages 357-365

About this book


This handy reference book detailing the intricacies of R updates the popular first edition by adding R version 3.4 and 3.5 features. Starting with the basic structure of R, the book takes you on a journey through the terminology used in R and the syntax required to make R work. You will find looking up the correct form for an expression quick and easy. Some of the new material includes information on RStudio, S4 syntax, working with character strings, and an example using the Twitter API.

With a copy of the R Quick Syntax Reference in hand, you will find that you are able to use the multitude of functions available in R and are even able to write your own functions to explore and analyze data.

You will:
  • Discover the modes and classes of R objects and how to use them
  • Use both packaged and user-created functions in R 
  • Import/export data and create new data objects in R
  • Create descriptive functions and manipulate objects in R
  • Take advantage of flow control and conditional statements
  • Work with packages such as base, stats, and graphics


R quick syntax reference handbook code statistics programming data science analytics

Authors and affiliations

  • MargotĀ Tollefson
    • 1
  1. 1.StratfordUSA

Bibliographic information

Industry Sectors
Finance, Business & Banking
IT & Software
Consumer Packaged Goods
Oil, Gas & Geosciences