5) Lists

πŸ“– Lecture

In this week, we discuss lists, which are the most generic kind of data container in R.

🎯 Objectives

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

  • Describe in what sense a list is a one-dimensional object
  • Describe in what sense a list is like a β€œtrain with wagons”
  • provide an example of subsetting with single brackets (e.g. lis[index])
  • provide an example of subsetting with double brackets, and a single element lis[[index]])
  • provide a manipulation example with the dollar operator (e.g. lis$wagon)

πŸ“š Reading

πŸ”¬ Lab

You will work creating and manipulating lists.