[R] Printing a list of simultaneous equations

S Ellison S@E|||@on @end|ng |rom LGCGroup@com
Fri Jan 18 15:52:15 CET 2019


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:8}}



More information about the R-help mailing list