Description Usage Arguments Examples
Create datatable in ENR style
1 2 |
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). |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.