Computes the QR decomposition of a matrix.
qr2(x, tol = 0.0000001)
A matrix whose QR decomposition is to be computed.
The tolerance for detecting linear dependencies in the columns of x.
x
A list of two matrices: Q and R.
Calls the function qr and returns less compact but more understandable output.
qr
# NOT RUN { hilbert <- function(n) { i <- 1:n; 1/outer(i-1,i,"+") } h5 <- hilbert(5); qr2(h5) # }
Run the code above in your browser using DataCamp Workspace