Verena Weinbir
2014-May-23 22:31 UTC
[R] How to illustrate data of a csv file as table (xtable?)
Hello! I'd like to illustrate the data of an csv file as a nice table and copy it into my word-sheet. Currently, I am trying this with the xtable () function (latex output). Example Code: dfchar <- data.frame(Author = dat$author, Year = dat$year, Age = dat$age) xtable(dfchar) Now, since there are some more variables and many more data sets I have to include, I need to change the table orientation to landscape*. *The size of the table should run over several pages. Does anyone know how to implement this with the xtable () function or can provide me with an alternative function? Thank you very much in advance! Verena [[alternative HTML version deleted]]
Duncan Murdoch
2014-May-23 23:49 UTC
[R] How to illustrate data of a csv file as table (xtable?)
On 23/05/2014, 6:31 PM, Verena Weinbir wrote:> Hello! > > I'd like to illustrate the data of an csv file as a nice table and copy it > into my word-sheet. Currently, I am trying this with the xtable () function > (latex output).I'm not sure what you mean by copying it into your word-sheet, but latex has a lot of flexibility in formatting tables. See the http://en.wikibooks.org/wiki/LaTeX/Tables page for a description. It might be that you can get xtables to produce output suitable for that; you can certainly get the tables package to do it. (The vignette gives an example of a multi-page table, but doesn't include any rotated ones.) Duncan Murdoch> > Example Code: > > dfchar <- data.frame(Author = dat$author, Year = dat$year, Age = dat$age) > xtable(dfchar) > > Now, since there are some more variables and many more data sets I have to > include, I need to change the table orientation to landscape*. *The size of > the table should run over several pages. > > Does anyone know how to implement this with the xtable () function or can > provide me with an alternative function? > > Thank you very much in advance! > > Verena > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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. >
John Kane
2014-May-24 15:25 UTC
[R] How to illustrate data of a csv file as table (xtable?)
Verena Do you mean word-sheet or is this a typo for 'work-sheet'? John Kane Kingston ON Canada> -----Original Message----- > From: vweinbir at gmail.com > Sent: Sat, 24 May 2014 00:31:44 +0200 > To: r-help at r-project.org > Subject: [R] How to illustrate data of a csv file as table (xtable?) > > Hello! > > I'd like to illustrate the data of an csv file as a nice table and copy > it > into my word-sheet. Currently, I am trying this with the xtable () > function > (latex output). > > Example Code: > > dfchar <- data.frame(Author = dat$author, Year = dat$year, Age = dat$age) > xtable(dfchar) > > Now, since there are some more variables and many more data sets I have > to > include, I need to change the table orientation to landscape*. *The size > of > the table should run over several pages. > > Does anyone know how to implement this with the xtable () function or can > provide me with an alternative function? > > Thank you very much in advance! > > Verena > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.____________________________________________________________ FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!