Conclusion

Congratulations! You’ve completed the Vectors & Matrices module.

Learning Goals

Now that you’ve completed this module, you should be able to:

Vectors

  1. Describe the characteristics of atomic vectors.
  2. Describe the six atomic vector modes (logical, integer, double, character, complex, raw).
  3. Generate new atomic vectors using various functions.
  4. Perform element-wise arithmetic and logical operations on atomic vectors.
  5. Select and modify elements in a vector.
  6. Explain “recycling”, and describe how it works when manipulating vectors.

Matrices

  1. Describe the characteristics of an R matrix.
  2. Explain the relationship between matrices and vectors.
  3. Create new matrices in R.
  4. Perform element-wise operations on matrices.
  5. Select and modify the elements of a matrix.
  6. 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.

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.

Back to top