find_tableRow | R Documentation |
Functions to work with rows in tables
find_tableRow(table, row, withExtras = FALSE, withData = TRUE)
tableRow(table, row, withExtras = FALSE, withData = TRUE)
tableRow(table, row, asis = FALSE, withExtras = FALSE, withData = TRUE) <- value
table |
A tabular-like environment to work with. |
row |
row in the table (1 is top row), including rows of labels. |
withExtras |
If |
withData |
If |
asis |
Should a linebreak and newline be added after the value? |
value |
The content to be inserted into the cell. This can be a LaTeX2 object, or a character string that will be converted to one. |
Unless asis = TRUE
, tableContent(table) <- value
will add "\" and a newline
at the end if not present.
If the row
value is higher than the number of rows
in the table, blank rows will be added to fill the
space between.
If withExtras = TRUE
and you want the
result to start on a new line, you need to add the
newline explicitly in value
when using the
assignment function.
find_tableRow()
returns a LaTeX2range of
the entries corresponding to the content of row i of
the table.
tableRow()
returns a LaTeX2 object containing
all of the table content in the row.
latex <- kableExtra::kbl(mtcars[1:2, 1:2], format = "latex")
parsed <- parseLatex(latex)
table <- parsed[[find_tabular(parsed)]]
find_tableRow(table, 1)
tableRow(table, 1)
tableRow(table, 1, withExtras = TRUE)
tableRow(table, 5) <- "a & b & c"
table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.