3) Matrices and Lists

📖 Matrices and Lists

We continue describing more data objects in R such as

  • atomic objects: matrices (and N-dim arrays)
  • non-atomic objects: lists

📰 Slides

03a-matrices.pdf

03b-lists.pdf

🎯 Objectives

At the end of this week you will be able to:

  • Create matrices with the function matrix(), rbind(), and cbind()
  • Explain how R internally stores matrices
  • Use brackets [] to subset matrices
  • Describe why matrices are atomic objects
  • Creation of lists with list()
  • Describe in what sense a list is considered to be a non-atomic vector

📚 Reading