[R] I have a question!!!! Help me!!

Christophe Pallier pallier at lscp.ehess.fr
Tue Apr 20 21:45:25 CEST 2004


>We want to solve X's and Y's value!!
>When we have two equation: 
>For example:
>
>2X+3Y=5
>X+Y=2
>
>  
>

solve(matrix(c(2,1,3,1),2,2),c(5,2)) yields the solution.

see '?solve' (you have to know about matrix algebra to understand this 
function)

Christophe Pallier




More information about the R-help mailing list