Skip to content
Prev 70379 / 398525 Next

Linear system

Jim Gustafsson wrote:
Use ?solve:

X <- matrix(c(353, 45, 29,
                45, 29,  3,
                29,  3,  4), 3, 3, byrow = TRUE)
y <- c(79, 5, 8)
b <- solve(X, y)

Have you read the posting guide? In particular, have you tried simple 
queries using help.search or the R archives? This question has been 
answered many times.

HTH,

--sundar