Introduction

This is an R-version of the code for “Linear Algebra: Theory, Intuition, Code” by Mike X Cohen. I have tried to keep the code as close to the original as possible even if it went against the spirit of R. E.g., some loops can be replaced with vectorized operations, tidyverse piping approach, or apply()/replicate()/purrr::map(). In most cases, I use library:: disambiguation to make it easier to understand which function belongs to which package, in addition to importing libraries via library().

Libraries the code relies upon

Matrix calculations

Tidyverse packages for data wrangling, you can install all relevant packages (including ggplot2) via install.packages("tidyverse").

Graphics