Lists in R
Learning to work with data structures is critical for programming in R. Data structures are essential concepts in programming because efficient data storage and operartions rely on them.
In this third lesson of our interactive Data Structures in R course, you will continue adding to your R programming skills as you learn about lists and how to work with lists in R.
A list is a multi-dimensional data structure which contains multiple data types. Why would we want to create lists of objects in R? The answer is that storing objects in lists allows us to make use of some very powerful R features for performing the same operation on each object in our list, which can let us avoid repetitively typing the same function.
After you finish this lesson, you will be comfortable working with lists, and you'll have a solid understanding of when lists will be most useful in your data analysis work.
- Lists: Objects That Can Contain Multiple Data Types
- Creating a List
- Anatomy of a List
- Getting/Setting Names to List Objects
- Indexing Lists
- Modifying List Elements
- Appending Elements to Lists
- Removing Elements from a List
- Combining Lists
- Next Steps