3) More about Vectors

📖 Lecture

We continue describing more aspects about vectors, specifically the so-called subsetting also known as indexing or subscripting.

  • subsetting (aka subscripting, subindexing, indexing): the use of single/double brackets to subset (i.e. subscript, index) elements of a vector.

🎯 Objectives

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

  • Use brackets to subset elements of a vector
  • Provide an example of numeric subsetting
  • Provide an example of logical subsetting
  • Provide an example of character subsetting

📚 Reading

🔬 Lab

Manipulation of basic data objects in R using bracket notation.