writeLines(paste(do.call(paste, c(liste, sep=" & ")), "\\\\\\hline"), con = "empf.csv")

Best,
Uwe Ligges



On 26.02.2016 11:06, Ferri Leberl wrote:


Hi everyone!

I want to include a table into LaTeX. I have a fitting environment and don't 
want to deal with xtable, so only the core of the table should be exported with 
something like

write.table(liste,"empf.csv",sep="&",quote=FALSE,row.names=F)

What I need is a way to end every row with \\\hline. If I simply enlarge the table 
by a column with this content, I will obviously end up with a & too much in 
every row.

Can anyone tell me a solution?

Thank you in advance!

Yours,
Ferri

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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