Calculation with Matrices in R

Asked

Viewed 511 times

3

What functions should I use to make the following calculations with matrices in R:
- Find the transposed matrix;
- Find the inverse matrix;
- Find the identity matrix;
- Finding the determinant of a matrix.

1 answer

3


Where M is its matrix,

  • Transposed t(M)
  • Inverse solve(M)
  • Identity diag(x = 1, nrow, ncol)
  • Determinant det(M)
  • 1

    This comes in R-intro.pdf: transposed section 5.6; identity 5.7.1; inverse 5.7.2; determinant 5.7.4. And, of course, much more.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.