Skip to main content
  • Book
  • © 2019

R Quick Syntax Reference

A Pocket Guide to the Language, APIs and Library

Apress

Authors:

  • A unique quick reference book detailing the intricacies of the R language
  • Updated to cover R 3.4 and 3.5 features
  • Learn R to write your own functions and analyze data
  • 23k Accesses

Buy it now

Buying options

eBook USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (17 chapters)

  1. Front Matter

    Pages i-xvii
  2. R Basics

    1. Front Matter

      Pages 1-1
    2. Downloading R and Setting Up a File System

      • Margot Tollefson
      Pages 3-11
    3. The R Prompt and the R Studio Windows

      • Margot Tollefson
      Pages 13-19
    4. Assignments and Operators

      • Margot Tollefson
      Pages 21-39
  3. Kinds of Objects

    1. Front Matter

      Pages 41-41
    2. Modes and Types of Objects

      • Margot Tollefson
      Pages 43-72
    3. Classes of Objects

      • Margot Tollefson
      Pages 73-109
  4. Functions

    1. Front Matter

      Pages 111-111
    2. Packaged Functions

      • Margot Tollefson
      Pages 113-120
    3. User-Created Functions, Scripts, and S4 Methods

      • Margot Tollefson
      Pages 121-138
    4. How to Use a Script or Function

      • Margot Tollefson
      Pages 139-150
  5. I/O and Manipulating Objects

    1. Front Matter

      Pages 151-151
    2. Importing and Creating Data

      • Margot Tollefson
      Pages 153-186
    3. Exporting from R

      • Margot Tollefson
      Pages 187-204
    4. Descriptive Functions and Manipulating Objects

      • Margot Tollefson
      Pages 205-250
  6. Flow control

    1. Front Matter

      Pages 251-251
    2. Flow Control

      • Margot Tollefson
      Pages 253-258
    3. Examples of Flow Control

      • Margot Tollefson
      Pages 259-275
    4. The Functions ifelse() and switch()

      • Margot Tollefson
      Pages 277-284

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.




What You Will Learn
  • 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



Who This Book Is For


Those with programming experience, either new to R, or those with at least some exposure to R but who are new to the latest version.

Authors and Affiliations

  • Stratford, USA

    Margot Tollefson

About the author

Margot Tollefson is a self-employed consulting statistician residing in the tiny town of Stratford in the corn and soybean fields of north-central Iowa. She started using the S-Plus language in the early 1990s and was happy to switch to R about ten years ago. Margot enjoys writing her own functions in R - to do plots and simulations, as well as to implement custom modeling and use published statistical methods. She earned her graduate degrees in statistics from Iowa State University in Ames, Iowa.

Bibliographic Information

Buy it now

Buying options

eBook USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Other ways to access