Re: [R] Presentation tables in R (knitr)

2014-11-26 Thread Franzini, Gabriele [Nervianoms]
Subject: [R] Presentation tables in R (knitr) Hi, This problem has me stumped so I thought I'd ask the experts. I'm trying to create a pretty summary table of some data (which patients have had what tests at what times). Ideally I'd like to knitr this into a pretty PDF for presenta

Re: [R] Presentation tables in R (knitr)

2014-11-25 Thread Jeff Newmiller
Pebbles in sand are also an alternative to Excel, but that doesn't mean people want to switch to abaci. Horse, meet water. If you use LaTeX (or Rmarkdown-to-pdf in RStudio), then you can obtain much better looking tables using latex.tabular(). Unfortunately, LaTeX is just too scary for some peo

Re: [R] Presentation tables in R (knitr)

2014-11-25 Thread Tom Wright
Thanks Duncan, Dropping the extra columns might be the way forward. I'm sure I can work out how to embed latex into a markdown document ;-) On Tue, Nov 25, 2014 at 4:37 PM, Duncan Murdoch wrote: > On 25/11/2014 3:12 PM, Tom Wright wrote: > >> Hi, >> This problem has me stumped so I thought I'd a

Re: [R] Presentation tables in R (knitr)

2014-11-25 Thread Duncan Murdoch
On 25/11/2014 3:12 PM, Tom Wright wrote: Hi, This problem has me stumped so I thought I'd ask the experts. I'm trying to create a pretty summary table of some data (which patients have had what tests at what times). Ideally I'd like to knitr this into a pretty PDF for presentation. If anyone has

Re: [R] Presentation tables in R (knitr)

2014-11-25 Thread Tom Wright
Hi Mark, It is the underscores that are my issue, I'd prefer multiple level row titles: |ID1 |ID2 |Time1 |Time2 |Time1 |Time2 |OD |OS |OD |OS|OD |OS |OD |OS Height | 1| 1 | 1 | 1 | 1 | 1 | 1 | 1 Weight| 1| 1 | 1 | 1 | 1

Re: [R] Presentation tables in R (knitr)

2014-11-25 Thread Mark Sharp
Tom, If you are wanting PDF as your output, are you wanting to use LaTeX or Markdown with knitr. LaTeX will give you more options. You have not shown an attempt to use either for your table construction. Can you define what you mean by pretty? Is it the underscores in the column names that are

[R] Presentation tables in R (knitr)

2014-11-25 Thread Tom Wright
Hi, This problem has me stumped so I thought I'd ask the experts. I'm trying to create a pretty summary table of some data (which patients have had what tests at what times). Ideally I'd like to knitr this into a pretty PDF for presentation. If anyone has pointers I'll be grateful. require(tables)