0%

Book Description

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.

Table of Contents

  1. Cover
  2. Front Matter
  3. Part I. R Basics
    1. 1. Downloading R and Setting Up a File System
    2. 2. The R Prompt and the R Studio Windows
    3. 3. Assignments and Operators
  4. Part II. Kinds of Objects
    1. 4. Modes and Types of Objects
    2. 5. Classes of Objects
  5. Part III. Functions
    1. 6. Packaged Functions
    2. 7. User-Created Functions, Scripts, and S4 Methods
    3. 8. How to Use a Script or Function
  6. Part IV. I/O and Manipulating Objects
    1. 9. Importing and Creating Data
    2. 10. Exporting from R
    3. 11. Descriptive Functions and Manipulating Objects
  7. Part V. Flow control
    1. 12. Flow Control
    2. 13. Examples of Flow Control
    3. 14. The Functions ifelse() and switch()
  8. Part VI. Some Common Functions, Packages and Techniques
    1. 15. Some Common Functions
    2. 16. The Packages base, stats, and graphics
    3. 17. Tricks of the Trade
  9. Back Matter
18.226.180.133