View source: R/render_helpers.R
colorows | R Documentation |
Color the rows in an HTML table
colorows(
x,
bgcolor = "yellow",
color = "blue",
rows = NULL,
format = theFormat
)
x |
A data frame. |
bgcolor |
Background color, defaulting to "yellow". |
color |
Font color, defaulting to "blue". |
rows |
Row indices to apply the colors to. Defaults to |
format |
String, either "html", "pdf" or "word". If not "html", nothing is done. |
The function colors the cells, not the rows (<tr> tags). It's not ideal, but simple.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.