Module # 5 Doing Math

 

Doing Math with a Matrix in RStudio

1) This week I am tackling matrices and inverse matrices in RStudio. Luckily this is something I have done before, so I expect this to go relatively smoothly. 

2) What we will be doing is trying to "find the value of an inverse of a matrix, determinant of a matrix by using the following values: A=matrix(1:100, nrow=10) & B=matrix(1:1000, nrow=10)". 

3) Now immediately I know that matrix B will not work because it is not a square, so I am simply not going to bother with it and just run with Matrix A. I will be using RStudio do calculations for the determinate of A, the inverse of A if it is non-singular, and if a inverse exists or not. 

4) Now based on the out put above we can see that A does not have a inverse and that the determinate of A is 0. 



Comments

Popular posts from this blog

Module # 10 Building my own R package

Module # 13 Shiny Web App

Module # 4 Programming Structure