get_html_data: Create HTML format data. Useful with datable_enr function.

Description Usage Arguments Examples

Description

Create HTML format data. Useful with datable_enr function.

Usage

1
2
get_html_data(data, column = NULL, direction = "col",
  formatter = "simple_formatter")

Arguments

data

dataset you want to implement in DT::datatable.

column

columns which will be format by 'formatter' argument. Those columns will be centered.

direction

the direction in which cells will be coloured. Possible opitons: 'area', 'col' and 'row'. Default value: 'col'.

formatter

method of color choosen columns' cells. Default value: 'custom_formatter'.

Examples

1
2
3
4
5
## Not run: 
example_dt <- get_html_data(mtcars, column = 4:6, direction = 'area')
datatable_enr(example_dt, tooltip = "This is a description.")

## End(Not run)

pearsonplc/vispear documentation built on May 30, 2019, 3:45 p.m.