vector_to_row | R Documentation |
Convert vector to table row and back
vector_to_row(cells, asis = FALSE, linebreak = TRUE)
row_to_vector(row, asis = FALSE, deparse = TRUE)
cells |
A list or vector of cell contents. |
asis |
If |
linebreak |
If |
row |
A row from a table |
deparse |
Should the result be deparsed? |
vector_to_row
returns a LaTeX2 object which could be a row
in a tabular object.
row_to_vector
returns a character vector of the
deparsed contents of the row, or if deparse
is FALSE
, a list of the contents.
vector_to_row(1:3)
row_to_vector("1 & 2 & content \\\\")
row_to_vector("1 & 2 & content \\\\", deparse = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.