[R] write.table: adapt end of line

Ulrik Stervbo ulrik.stervbo at gmail.com
Fri Feb 26 12:24:38 CET 2016


You could also use kable from the Knitr package

Best,
Ulrik

On Fri, 26 Feb 2016 at 11:17 Uwe Ligges <ligges at statistik.tu-dortmund.de>
wrote:

> 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 at 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 at 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.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list