Data Frames

Learn to use data frames—one of the most powerful tools in R—and key functions for manipulating them.

The data frame is R’s most common way of storing the types of data sets that we’ll use as data scientists. In almost every piece of data science code, there will be a form of a data frame. They are, in essence, two-dimensional tabular data storage objects. Both rows and columns are named. Those who’re familiar with any spreadsheet software (Excel, Google Sheets) can think of them as variables containing spreadsheets. Those who’ve previously used any database software can think of them as database tables.

Get hands-on with 1200+ tech skills courses.