Appendix A. R Fundamentals

 

"One of my most productive days was throwing away 1000 lines of code."

 
 -- Ken Thompson

Introduction

This chapter covers the basic programming syntax functions and capabilities of R. It has been put forward to introduce you to R and accelerate your learning. The objectives are as follows:

  • Install R and RStudio
  • Create and explore vectors
  • Create data frames and matrices
  • Explore mathematical and statistical functions
  • Build simple plots
  • Install and load packages

All of the examples in this appendix are covered in one way or another in the preceding chapters. However, if you are completely new to R, this is a great starting point. It may accelerate your understanding of the content in the chapters.

Get R: Unleash Machine Learning Techniques now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.