Conclusion
Congratulations! You’ve completed the Lists & Data Frames module.
Learning Goals
Now that you’ve completed this module, you should be able to:
Lists
- Describe the characteristics of an R list.
- Describe important use-cases for lists, and explain why lists are the best choice in these situations.
- Create new lists in R.
- Access and modify list elements using different methods, and explain the difference between the available selection operators.
Data Frames
- Describe the characteristics of data frames.
- Explain important use-cases for data frames, and explain why data frames are the best choice in these situations.
- Create new data frames in R.
- Explain how data frames and lists are related.
- Explain the differences between data frames and matrices.
- Use list-style and matrix-style indexing to access and modify the elements of a data frame.
- Explain the different effects of the available selection operators.
- Explain how recycling works with data frames.
Additional Reading
For more information on the topics we’ve covered in this module, the following chapters from Hadley Wickham’s R for Data Science are excellent resources.
- Field Guide to Base R
- Lists (from the first edition)
Advanced Reading
For a much more technical deep-dive into the topics we’ve covered in this module, check out the following sections/chapter from Hadley Wickham’s Advanced R.
Next Steps
Now that you’re comfortable with lists and data frames, you’re ready to move on to the last data structure in this series: factors, which R uses to represent categorical data.
Click the button below to get started!