threshold wrote:
> 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
> rob 
>   
Double the backslashes and/or have a look at the "xtable" package.

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])              FAX: (+45) 35327907

______________________________________________
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