MISSION 504

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. 

Objectives

  • Learn about lists and why they're useful.
  • Create, modify, and perform operations with lists.
  • Combine lists.

Mission Outline

  1. Lists: Objects That Can Contain Multiple Data Types
  2. Creating a List
  3. Anatomy of a List
  4. Getting/Setting Names to List Objects
  5. Indexing Lists
  6. Modifying List Elements
  7. Appending Elements to Lists
  8. Removing Elements from a List
  9. Combining Lists
  10. Next Steps


Course Info:

Beginner

This course requires a Basic subscription and includes four missions and one guided project.  It is the second course in the Data Analyst in R learning path.

START LEARNING FREE

Take a Look Inside