4  Data Structures

4.1 Objectives

  • Learn how to construct vectors, data frames, matrices, arrays, and lists
  • Learn how each data structure relates to the others
  • Know when to use which data structure

4.2 Vectors

4.2.1 Subsetting

4.2.2 Factors

4.3 Data Frames

4.3.1 Loading and Saving

4.3.2 Subsetting and Combining

4.4 Matrices and Arrays

4.5 Lists