Data Structures: Vectors

Practical Computing and Data Science Tools

Agenda

  • Overview of data structures
  • A tour of vectors

Data structures

  • A data structure is a format for organizing and storing data. The structure is designed so that data can be accessed and worked with in specific ways.

  • Structures are either homogeneous or heterogeneous, which describes the data types they hold (one type versus multiple types).

  • Structures can also be characterized by their dimensionality, see Table Table 1.

Table 1: Dimension and type content of base data structures in R.
Dimension Homogeneous Heterogeneous
1 Atomic vector List
2 Matrix Data frame
N Array

Data structures

  • Let’s take a look at vectors.qmd.