I would like to add some twists to tables. Using the ATTR_LaTeX attribute I can control alignment and vertical gridlines in the table. I also would like to have horizontal gridlines, and I would like to have multicol top headers. tgroupt and n.tgroup in theory should me give these multicol headers, but it does not work.
Is there a way of accomplishing what I want? #+title: Testing R table output #+author: Erich Neuwirth #+date: 28. August 2012 #+ATTR_LaTeX: align=|l|c|r|r|r|r| #+ATTR_HTML: border="2" rules="all" frame="border" #+begin_src R :session *RPisa* :results output org :exports results require(ascii) mydf <- data.frame( year = rep(as.character(rep(seq(2000,2009,3)),each=2)), gender = rep(c("f","m"),times=2), m1 = (11:18)/11, m2 = (102:109)/22, s1 = seq(1,2,length.out=8), s2 = seq(1.5,2.5,length.out=8) ) res <- ascii(mydf, digits=c(0,0,1,1,2,2), align=c("l","c","r","r","r","r"), format=c("d","s","f","f","f","f"), include.rownames=FALSE, tgroup=c("","mean","se"), n.tgroup=c(2,2,2)) print(res,type="org") #+end_src