datatable_enr: Create datatable in ENR style

Description Usage Arguments Examples

Description

Create datatable in ENR style

Usage

1
2
datatable_enr(data, options = list(), sorting = FALSE, desc_column = NULL,
  tooltip = "", id = NULL, ...)

Arguments

data

a data object

options

a list of initialization options. All things available in DT package.

sorting

binary parameter regarding soritng columns.

desc_column

describing variables in the table. Numerical argument, e.g. 1:3 treats first three columns as a descr. variables.

tooltip

tooltip which descibes content's table.

id

table id. It's necessary in shiny app when you want to add a tooltip. Id must match with id of render object. More in examples.

...

all DT::datatable parameters (exept options which you can define in options argument).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
datatable_enr(mtcars,
        desc_column = 1:3,
        tooltip = "This is a description of table."
)

output$mtcars_table <- renderDataTable({

 datatable_enr(mtcars, tooltip = "Lorem", id = "mtcars_table")

})

## End(Not run)

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