5 Doing Math
A <- matrix(1:100, nrow=10) > B <- matrix(1:1000, nrow=10) > det(A) [1] 0 > det(B) Error in determinant.matrix(x, logarithm = TRUE, ...) : 'x' must be a square matrix Since the matrix has 1000 values with only 10 rows, that means there’s 100 columns. This forms a non-square matrix, which does not have a determinant. Because of this, there is no inverse for matrix B.