There are times when you will want to select specific rows (i.e., cases), specific columns (i.e., variables), or maybe both. This is often called subsetting your data frame.
There are, of course, a number of ways to accomplish this in R. The following will show you how to subset your data using base R and the dyplr package.