The advantage with respect to theme_htmlTable(caption = "My table") is that this works with HTML and LaTeX outputs

theme_caption(x, caption = "")

Arguments

x

The condformat object

caption

The caption to show

Examples

data(iris)
cf <- condformat(head(iris)) %>%
  theme_caption(caption = "My Caption")
if (FALSE) {
print(cf)
}