Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adjust row height xtable R

Tags:

r

xtable

There are couple of helpful posts round dealing with xtable but no one deals with this as far as my search abilities go.

I would like to adjust row height in xtable (print). I'm printing a data.frame.

print(xtable(...),...)

Please note that I'm already using add.to.row

addtorow <- list()
addtorow$pos <- list()
addtorow$pos[[1]] <- c(0)
addtorow$command <- c(paste("\\hline \n","\\hline \n",sep=""))

So what I would like to do is to widen the upper row space:

enter image description here

I have tried all kind of things but always just messing around what I have already nicely done.

like image 490
Maximilian Avatar asked Oct 18 '13 10:10

Maximilian


1 Answers

You could simply use the booktabs option which increases the padding around the horizontal lines

print(xtable(...),booktabs = T)
like image 179
AndB Avatar answered Oct 22 '22 21:10

AndB