Conclusion
Congratulations! You’ve completed the Vectors & Matrices module.
Learning Goals
Now that you’ve completed this module, you should be able to:
Vectors
- Describe the characteristics of atomic vectors.
- Describe the six atomic vector modes (logical, integer, double, character, complex, raw).
- Generate new atomic vectors using various functions.
- Perform element-wise arithmetic and logical operations on atomic vectors.
- Select and modify elements in a vector.
- Explain “recycling”, and describe how it works when manipulating vectors.
Matrices
- Describe the characteristics of an R matrix.
- Explain the relationship between matrices and vectors.
- Create new matrices in R.
- Perform element-wise operations on matrices.
- Select and modify the elements of a matrix.
- Explain how recycling works with matrix operations.
Additional Reading
For more information on the topics we’ve covered in this module, the following chapter from Hadley Wickham’s R for Data Science is an excellent resource.
- Vectors in 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 chapter from Hadley Wickham’s Advanced R.
Next Steps
Now that you have a solid grasp of vectors and matrices, you’re ready to learn about two very useful data structures: lists and data frames. These data types are central to any real-world R project because they can store let you store mixed-type, tabular data and arbitrary collections of R objects.