Overview Section
Now that we are working with more than on variable, we need to consider how data sets are stored in R, which brings us to the "dataframe", the R equivalent of a spreadsheet. We'll be following Chapter 7 in Essential R.
Objectives
Upon completion of this lesson, you should be able to:
- Create a dataframe from vectors in your workspace
- Load a built-in data frame using the function
data()
- Query and change variables and values within dataframes
- Create new variables within data frames
- Combine data frames
Data and R Code Files Section
The R code file and data files for this lesson can be found on the Essential R - Notes on learning R page.