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

Description Usage Arguments Examples

View source: R/get_html_data.R

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)

AMUFacultyOfEnglish/ENRanalytics documentation built on Oct. 30, 2017, 12:53 a.m.