Data structures

module 2
week 3
data frames
lists
tibbles
vectors
Create, modify, and subset vectors, lists, and data frames
Author

Jeff Stevens

Published

February 6, 2023

All data in R are vectors, but there are some special forms of vectors such as lists and data frames. We’ll explore how to create, modify, and subset vectors, lists, and data frames.

Learning objectives

  • Create vectors, lists, and data frames
  • Learn how to subset data
  • View attributes of data

Pre-meeting

To prepare for this class meeting, please do the following:

Class meeting

  • Creating vectors
  • Sequences and repetitions
  • Vector indexes
  • Creating lists and data frames
  • Subsetting data frames
  • Dimensions
  • Tibbles
  • Slides and Code

Homework after the class meeting

Wrap up this lesson

For next class meeting