[R] R-Latex question

From: threshold <r.kozarski_at_gmail.com>
Date: Tue, 11 Mar 2008 10:23:50 -0700 (PDT)

Hi, maybe my question is not typical. I want to make R table-kind output to be readable immediately in Latex but I am struggling with symbol '\' needed for instance in '\hline'. For example when 'Table' is a matrix class object:

cat("&",Table[1,1], "&",Table[1,2], "\n");flush.console() 
cat("\hline \n");flush.console()
cat("&",Table[2,1], "&",Table[2,2], "\n");flush.console() 

etc, to have specific output which I can paste (or save) in latex readible format.

but '\' was not accepted by R. Is there any way to over come this obstacle or maybe other way to 'implement' R table output into latex format

thank you in advance

View this message in context: http://www.nabble.com/R-Latex-question-tp15980281p15980281.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 11 Mar 2008 - 17:36:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 11 Mar 2008 - 19:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive