[R] Equate two (or more) functions

Rui Barradas ruipbarradas at sapo.pt
Wed Apr 25 20:01:33 CEST 2012


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.



More information about the R-help mailing list