In xtable, is there any way to print a latex table without rownames, but while keeping &
on the left hand side?
I also don't want to set the rownames to NA in my data matrix to achieve this feat.
Example:
require(xtable)
o <- do.call(cbind,lapply(1:10,function(i) matrix(rnorm(10)) ))
print(xtable(o))
We can see on the LHS of this output, there's 1,2,3,4,...,10
. This is bad. I don't want this.
However
print(xtable(o),include.rownames=FALSE)
doesn't give me what I want because it deletes the &
at the LHS of the matrix.