Chapter 2. Basic Objects
The first step of learning R programming is getting familiar with basic R objects and their behavior. In this chapter, you will learn the following topics:
- Creating and subsetting atomic vectors (for example, numeric vectors, character vectors, and logical vectors), matrices, arrays, lists, and data frames.
- Defining and working with functions
"Everything that exists is an object. Everything that happens is a function." -- John Chambers
For example, in statistical analysis, we often feed a set of data to a linear regression model and obtain a group of linear coefficients.
Provided that there are different types of objects in R, when we do this, what basically happens in R is that we provide a data frame object that holds the ...
Get Learning R Programming 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.