All throughout your data analysis pipeline, you will face the need to take smaller chunks out of a larger data structure. Sometimes you will need to change the data that is stored in your structure, or use it as input to another function, or perhaps you need to plot it.
The task of slicing a smaller chunk out of a larger data structure is called indexing in R (sometimes called subsetting depending on context), and is performed using the square bracket characters []
.