| get.align | R Documentation | 
Create a character vector to use in an align argument for xtable()
get.align(num, first.left = TRUE, just = "r")
| num | The number of columns | 
| first.left | If TRUE, set the first column to be left-justified | 
| just | The justification of all columns, unless first.left is TRUE. "r", "l", or "c" | 
A character vector to use in an align argument for xtable()
library(gfutilities)
library(xtable)
d <- data.frame(a = c(1,2,3), b = c(10,20,30))
print(xtable(d,
             caption = "The table caption",
             label = "tab:example",
             align = get.align(ncol(d), just = "c")),
      caption.placement = "top",
      include.rownames = FALSE,
      table.placement = "H",
      sanitize.text.function = function(x){x},
      size = latex.size.str(12, 11))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.