Matrices

Learn to use matrices in R, how they’re different from data frames, and how to do matrix arithmetic.

Matrices in R are very similar to data frames, but they’re less commonly used. In a data science context, they can be helpful in specific scenarios, but the vast majority of the time it’s easier to use data frames.

Get hands-on with 1200+ tech skills courses.