I\'m writing in R Markdown and have a contingency table that is quite wide. I am converting the R markdown document to a PDF using pandoc.
Is it possible to rotate o
Can you just use t()?
library(xtable) xtable(t(iris[1:5,]))
If your table is still to long, split it up into multiple tables. e.g.:
splits = floor(seq(1, ncol(iris), length=5)) for(i in 2:length(splits)){ mini.tab = iris[ , splits[i-1]:splits[i]] xtable(mini.tab) }