qr2 | R Documentation |

Computes the QR decomposition of a matrix.

qr2(x, tol = 0.0000001)

`x` |
A matrix whose QR decomposition is to be computed. |

`tol` |
The tolerance for detecting linear dependencies in the
columns of |

Calls the function `base::qr()`

and returns
less compact but more understandable output.

A list of two matrices: Q and R.

`base::qr()`

hilbert <- function(n) { i <- 1:n; 1/outer(i-1,i,"+") } h5 <- hilbert(5); qr2(h5)

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.