Top "Xtable" questions

A function of an R package of the same name, used to convert an R object into an object that may be printed as a LaTeX or HTML table.

R - Conditional row highlighting in HTML table created using xtable or kable

I'm pretty much a beginner at programmatically formatting R output, but I've got a basic understanding of knitr, xtable, Markdown, …

r knitr r-markdown xtable
Formatting html table in R

I would like to improve the look of an html table that I generate in R using the package xtable: …

html r xtable
xtable caption stays below

I created a table with the following Rsweave code. <<fig=FALSE,results=tex ,echo=FALSE>>= require(…

r sweave xtable
Preserve row/column labels from table() using kable and knitr

The table function in base R adds nice row/column labels, but when I use knitr::kable these go away. …

r markdown knitr xtable
Adding a horizontal line between the rows in a latex table using R xtable

I have a sample latex table generation code like this df<-data.frame(name=rep(letters[1:7],each=24),salary=runif(24*7,100,200)) …

r latex xtable
How to suppress automatic table name and number in an .Rmd file using xtable or knitr::kable?

I'd like to name my tables from R scripts without the automatic Table 1:... prefix when using xtable() or knitr::kable() …

r latex rstudio knitr xtable
How to put a newline into a column header in an xtable in R

I have a dataframe that I am putting into a sweave document using xtable, however one of my column names …

r latex tex sweave xtable
Set column alignment and width for xtable generated longtable

Please consider the following MWE library(xtable) DF <- as.data.frame(UCBAdmissions) print(xtable(DF, align="p{0.4\textwidth}|…

r tex xtable longtable
R --markdown to latex - tables do not show up

I am using Knitr in Rstudio, to generate markdown files. I display the tables via xtable package and it shows …

latex markdown knitr xtable pandoc
How to include NA data in a table

I've recently been using the package tab in R to build frequency tables. Using the tabfreq() or the tabmulti() functions, …

r na crosstab xtable