Posts in tag

Subsets


Last time, we discussed how to index or subset vectors and matrices in R. Now, we will deal with indexing the other commonly used R objects: lists and data frames. Typically, we will not be dealing with data with the level of simplicity of vectors and matrices. Most of the time, more structure with the …

Previously, we talked about the objects in R and how they are created. Now, we will discuss how information can be extracted from these objects. This process is also known as indexing or subsetting. The ability to access information is important since there are times that we only need a specific data point or subset …