util.vis.datatable: convert data.frame to DT-html table

Description Usage Arguments Value Examples

View source: R/utils-table.R

Description

visualize table using kable package

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
util.vis.datatable(
  df,
  type = c(),
  dom = "frtip",
  options = NULL,
  scrollY = 400,
  rownames = F,
  filter = "none",
  background.color = "#008B8B",
  pretty.header = F,
  ...
)

Arguments

df

input data.frame

type

character, 'buttons','scroll-y'

dom

character, a combined string to indicate table elements

options

list, extra options from 'DT' js package

scrollY

int, number of pixels to the scrollable window

rownames

boolean, TRUE -> show rowname of table

filter

character, 'none','top','bottom', position of filter

background.color

character, header color

pretty.header

boolean, TRUE -> enable colored header

...

extra params from 'datatable' function

Value

rendered html table

Examples

1
2

6chaoran/lh2util documentation built on Nov. 29, 2020, 1:28 a.m.