R 4 Quick Syntax Reference: A Pocket Guide to the Language, API's and Library, Third Edition

  • 6h 49m
  • Margot Tollefson
  • Apress
  • 2022

This handy reference book detailing the intricacies of R covers version 4.x features, including numerous and significant changes to syntax, strings, reference counting, grid units, and more.

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 4 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

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.

In this Book

  • Introduction
  • Downloading R and RStudio and Setting up a File System
  • The R Prompt and the RStudio Main Menus and Subwindows
  • Assignments and Operators
  • Types and Modes of Objects
  • Classes of Objects
  • Packaged Functions
  • Scripts, User-Created Functions, and S4 and Reference Class Methods
  • How to Use a Script or Function
  • Importing and Creating Data
  • Exporting from R
  • Descriptive Functions and Manipulating Objects
  • Flow Control
  • Examples of Flow Control
  • The ifelse( ) and switch( ) Functions
  • Some Common Functions
  • The base, stats, and graphics Packages
  • Tricks of the Trade
SHOW MORE
FREE ACCESS

YOU MIGHT ALSO LIKE

Rating 4.5 of 15 users Rating 4.5 of 15 users (15)
Rating 4.3 of 14 users Rating 4.3 of 14 users (14)