Adrian Tam continues a series on core data types in R:
Vectors in R are supposed to be of homogeneous data type. You can use a list as the container if there are mixed data types, such as numbers and strings. The list and data frame are closely related in R. The data frame is probably more useful because it reflects how we usually collect statistics. In this post, you will learn about them. Specifically, you will know:
- What are lists and data frames in R
- How to manipulate lists and data frames
Read on to learn more about these two sorts of collections.