On Tue, 19 Jan 2010, jshort wrote:


Hi

How does one tell R that one is using an augmented matrix as appose to an
non-augmented matrix?


Explicitly creating an augmented matrix is unnecessary and awkward if the object is to solve a system of linear equations.

See:

        ?solve

HTH,

Chuck



For instance, when I want to solve two equations in two unknowns, I will
have to solve a 2 by 3 augmented matrix, however all I know to type into R
is something like this;

weights = c(1,2,3,4,5,6) (say)

M1=matrix(weights,ncol=3).

Does R correctly interpret me when I write the above code?

Furthermore, how do I reduce this augmented matrix in R such that it will
give me my two unknown variables?

Thanks so much.
--
View this message in context: 
http://n4.nabble.com/Reducing-augmented-matrices-tp1018223p1018223.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.


Charles C. Berry                            (858) 534-2098
                                            Dept of Family/Preventive Medicine
E mailto:cbe...@tajo.ucsd.edu               UC San Diego
http://famprevmed.ucsd.edu/faculty/cberry/  La Jolla, San Diego 92093-0901

______________________________________________
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