1.3 A quick refresher

If you haven’t used R for a while, or are a relatively new R user, then take a moment to remind yourself about the various data types in R. Try creating an example of the different types of structure using various data types:

  • Numeric
  • Integer
  • Logical
  • Character
  • Complex

And the structures in which those data types can be stored:

  • Vector
  • Matrix
  • List
  • Data frame
  • Factors (not really a structure!)