Here is a description of a few main methods of subsetting in R. I tried to keep it as concise as possible, with a brief mention on how these methods may differ depending on data structure. Cheers!