9.6 Data frames

A data frame is a 2-dimensional structure.
It is more general than a matrix.

All columns in a data frame:

  • can be of different types (numeric, character or logical)
  • must have the same length

A data frame is organized by column: columns are variables and rows are observations of each variable.

9.6.2 Data frame manipulation:

Very similar to matrix manipulation.