[R] Printing a list of simultaneous equations

Sorkin, John j@ork|n @end|ng |rom @om@um@ry|@nd@edu
Fri Jan 18 16:51:33 CET 2019


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
(Phone) 410-605-7119
(Fax) 410-605-7913 (Please call phone number above prior to faxing)



________________________________
From: S Ellison <S.Ellison using LGCGroup.com>
Sent: Friday, January 18, 2019 9:52 AM
To: Sorkin, John; r-help using r-project.org
Subject: RE: Printing a list of simultaneous equations

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 data.frame call you can get away with a space for variable names:

a  <- data.frame(y=c(c(0.5,4.0)), " "="=",x=c(1,2), z=c(2,3),
        row.names=sprintf("eq%d", 1:2), check.names=FALSE)

a


Steve E



*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:11}}



More information about the R-help mailing list