util.vis.kable: convert data.frame to kable-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
13
14
util.vis.kable(
  df,
  convert_pct = F,
  accuracy = 1,
  full_width = F,
  escape = F,
  caption = NULL,
  align = NULL,
  align.left = 1L,
  digits = 1,
  position = "center",
  pretty.header = T,
  ...
)

Arguments

df

input data.frame

convert_pct

boolean, TRUE -> convert number to percent if possible

accuracy

decimal for percentage, e.g. 1/0.1/0.01

full_width

boolean, TRUE -> full width table

escape

boolean, TRUE escape html tags

caption

character, caption of the table

align

character, a combined string of text alignment. e.g. 'lcrr' for 4 columns

align.left

int, number of columns left aligned.

digits

int, number of decimal digits to keep

position

'left','right','float_left','center'

pretty.header

boolean, TRUE -> colored header

...

extra params from kable_styling function

Value

rendered html table

Examples

1

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