Description
Book SynopsisThis 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. What You Will LearnDiscover the modes and classes of R objects and how to use themUse both packaged and user-created functions in RImport/export data and create new data objects in RCreate descriptive functions and manipulate objec
Table of ContentsPart 1: R Basics1. Downloading R and Setting Up a File System2. The R Prompt3. Assignments and Operators
Part 2: Kinds of Objects4. Modes of Objects5. Classes of Objects
Part 3: Functions6. Packaged Functions7. User Created Functions8. How to Use a Function
Part 4: I/O and Manipulating Objects9. Importing/Creating Data10. Exporting from R11. Descriptive Functions and Manipulating Objects
Part 5: Flow control12. Flow Control13. Examples of Flow Control14. The Functions ifelse() and switch()
Part 6: Some Common Functions, Packages and Techniques15. Some Common Functions16. The Packages base, stats and graphics17. The Tricks of the Trade