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() in an .Rmd file. Output is a pdf document. Here's a reproducible example from an .Rmd file: --- title: "Suppress automatic table name and number" output: pdf_document --- ```{r myirischunk, results = 'asis', tab.cap = NULL, echo = TRUE} library(xtable) print(knitr::kable(head(iris), caption = "I sure wish it would say Table 1.a")) print(knitr::kable(head(iris), caption =