Hello,

Try

(x <- matrix(c(5, 12, 3, -2), ncol=2))
(y <- c(30, 26))

solve(x, y)
solve.qr(qr(x), y)

(Use the second.)
Also, see section 5.7.5 of the R-intro.pdf that comes with your (any)
installation of R.

Hope this helps,

Rui Barradas


--
View this message in context: 
http://r.789695.n4.nabble.com/Equate-two-or-more-functions-tp4587302p4587523.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to