This page takes an estimated 35 minutes to complete.

Subsetting in R is a useful indexing feature for accessing object elements. It can be used to select and filter variables and observations.

Subsetting in R

To start learning about subsetting, watch the following videos from the Coursera page:

swirl Exercises

Now, complete swirl Lesson 6: Subsetting Vectors, and return here afterward.


If you made it here, then congratulations! You have successfully completed this section. Move to the next portion of the guide with the arrow buttons below.

Last updated