Data Frame Structure

Typically one of the first things we do upon importing a new dataset is to inspect its structure.

In this section, we cover inspecting the structure of a data frame. The section is organized as follows:

  1. In Data Frame Summary we look at how to obtain an overall summary of the structure of a data frame including its dimensions, column names, and data types.
  2. In Dimensions we cover how to get the number or rows and number of columns of a data frame.
  3. In Column Names we cover how to get the names of the columns of a data frame.
  4. In Data Types we cover how to get the data types of the columns of a data frame.
  5. In Memory Use we cover how to get the memory consumption (i.e. the size in memory) of a data frame or a column of a data frame.
R
I/O