Here's a good example of subsetting. The data is a small subset of a high school survey.