colorows: Color the rows in an HTML table

View source: R/render_helpers.R

colorowsR Documentation

Color the rows in an HTML table

Description

Color the rows in an HTML table

Usage

colorows(
  x,
  bgcolor = "yellow",
  color = "blue",
  rows = NULL,
  format = theFormat
)

Arguments

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 ros = NULL and nothing is done.

format

String, either "html", "pdf" or "word". If not "html", nothing is done.

Note

The function colors the cells, not the rows (<tr> tags). It's not ideal, but simple.


harrysouthworth/render documentation built on May 31, 2024, 11:18 a.m.