© Matthew Campbell 2019
Matthew CampbellLearn RStudio IDEhttps://doi.org/10.1007/978-1-4842-4511-8_12

12. R Programming

Matthew Campbell1 
Yardley, PA, USA

In this last chapter, we are going to go over the basic concepts that you need to know to do R programming. This tutorial is in no way comprehensive or meant to be your first experience with programming. However, if you have programmed before, this should provide you with enough to get started in R. Readers that are completely new to programming may want to consider taking an intensive course on this subject perhaps with Data Camp or Coursera.


Everything in R is an object. An object can be a list of numbers, a function, a plot, or the result of an analysis. There are different ...

Get Learn RStudio IDE: Quick, Effective, and Productive Data Science now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.