tableOption | R Documentation |
Functions related to table options.
find_posOption(table)
posOption(table)
posOption(table, asis = FALSE) <- value
find_widthOption(table)
widthOption(table)
widthOption(table, asis = FALSE) <- value
find_columnOptions(table)
columnOptions(table)
columnOptions(table, asis = FALSE) <- value
table |
A known tabular-like environment object, or the contents of one. |
asis |
Whether to make small modifications in replacement functions. |
value |
A character string or LaTeX2 object. |
Unless asis == TRUE
, the value for value
in posOption(table) <- value
can be specified with or without the enclosing brackets.
find_posOption()
returns the indices of the
entries corresponding to the "pos" option, including the
brackets, within the table.
posOption()
returns a LaTeX2 object containing the
"pos" option.
find_widthOption()
returns the index of the
block corresponding to the "width" option, if there is one.
Only some tabular-like environments have these.
widthOption()
returns a LaTeX2 object containing the
"width" option, if the table has one.
find_columnOptions()
returns the index of the
block corresponding to the column spec.
columnOptions()
returns a LaTeX2 object containing the
"column" options.
latex <- kableExtra::kbl(mtcars[1:2, 1:2], format = "latex")
parsed <- parseLatex(latex)
table <- parsed[[find_tabular(parsed)]]
table
find_posOption(table)
posOption(table)
posOption(table) <- "h"
posOption(table)
find_widthOption(table)
widthOption(table)
find_columnOptions(table)
columnOptions(table)
columnOptions(table) <- "lrr"
table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.