miqr.solve <- function(a, b) {
x <- tryCatch({
qr.solve(a, b);
}, error = function(e) {
e;
}, finally = "");
if (!is.matrix(x)) {
x <- ginv(a) %*% b;
}
x;
} # miqr.solve()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.