Re: [R] Printing a list of simultaneous equations

2019-01-21 Thread S Ellison
> -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Michael > Friendly > Check out the `matlib` package on CRAN and devel on github: Very nice! Thanks for the pointer. Steve E *** This

Re: [R] Printing a list of simultaneous equations

2019-01-19 Thread Michael Friendly
John- Don't try to forge a new wheel, when you can get one ready made and it might fit your wagon. Check out the `matlib` package on CRAN and devel on github: https://github.com/friendly/matlib install.packages("matlib") library(matlib) A <- matrix(c(1,2,3, -1, 2, 1), 3, 2) b <- c(2,1,3) show

Re: [R] Printing a list of simultaneous equations

2019-01-18 Thread Sorkin, John
Steve, Thank you, John John David Sorkin M.D., Ph.D. Professor of Medicine Chief, Biostatistics and Informatics University of Maryland School of Medicine Division of Gerontology and Geriatric Medicine Baltimore VA Medical Center 10 North Greene Street GRECC (BT/18/GR) Baltimore, MD 21201-1524

Re: [R] Printing a list of simultaneous equations

2019-01-18 Thread Jeff Newmiller
Don't use the default print method then. When you type an expression alone at the console it uses a print function to convert the result to characters for output. The default print method for matrices of character uses quotes to show the exact contents of each character string. Convert the matr

Re: [R] Printing a list of simultaneous equations

2019-01-18 Thread S Ellison
You can drop the quote marks by calling print() explicitly with quote=FALSE, by using as.data.frame round your cbind, or - perhaps best - by constructing your output matrix as a data frame in the first place. (print.data.frame defaults to quote=FALSE). And if you suppress name checking in a dat

[R] Printing a list of simultaneous equations

2019-01-18 Thread Sorkin, John
I am trying to print a list of equations in an easily readable form. At this time all I can get is a series of characters enclosed in quotation marks rather than equations with numbers and equal signs. What I get is y equalsigns x z eq1 "0.5" "=""1" "2" eq2 "4" "=""