powered by
Decompose a matrix into an orthogonal matrix Q and Upper triangular matrix R
QRdecompose(mat)
a matrix of real numbers
list containing Q and R matrices
# NOT RUN { QRdecompose(rbind(c(2,-2,18),c(2,1,0),c(1,2,0))) # }
Run the code above in your browser using DataLab