write.htab: write.htab

write.htabR Documentation

write.htab

Description

writes data frame (or anything castable to data frame) to pretty HTML formatted table to a static location. Useful for quick table inspection via Chrome or other web browser.

Very similar syntax to write.tab

Usage

write.htab(
  tab,
  file = NULL,
  title = NULL,
  footer = NULL,
  highlight = NULL,
  row.names = TRUE,
  col.names = TRUE,
  high.color = "yellow",
  row.colors = c("lightgray", "white"),
  header.colors = c("#4A4A4A", "white"),
  data.size = 15,
  dt = TRUE,
  force = FALSE,
  embed = FALSE,
  title.size = 15,
  footer.size = 20,
  header.size = round(1.1 * data.size)
)

Arguments

tab

data.frame, data.table, or GRanges

file

optional output .html file (by default ~/public_html/htab.html but directory can be set using env variable HTAB.PATH)

title

title to the page (=NULL)

footer

footer to add to page (=NULL)

highlight

optional integer vector specifying what rows to highlight

row.names

logical flag whether to include row labels (=TRUE)

col.names

logical flag whether to include col labels (=TRUE)

high.color

chaoracter highlight color (= 'yellow')

row.colors

length 2 character vector to shade data rows (= c('lightgray', 'white'))

header.colors

length 2 character vector specifygin background and text for header row (= c('#4A4A4A', 'white'))

data.size

integer font size in px for data, title, and footer (= 15)

title.size

integer font size in px for title (= 15)

footer.size

integer font size in px for footer (= 15)

header.size

integer font size in px for header (= 15)

Author(s)

Marcin Imielinski


mskilab/skitools documentation built on Aug. 31, 2023, 1:13 p.m.