Social Media Research

02 R Data Analysis


Question

Explain the different data Structures: Vector, Matrix, Array, List and Data Frame


Answer

The following can always only contain one type of data:

  • Vector: 1-Dimensional - basically a sequence of objects
  • Matrix: 2-Dimensional - basically a table with rows and columns
  • Array: n-Dimensional - a multi dimensional table with each cell having the possibility to contain new Arrays

For mixed data types

  • List: 1-Dimensional
  • Data Frame - 2-Dimensional



Comments