Description Usage Arguments Value Examples
View source: R/utils_helpers.R
Set DT::datatable options
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
data |
A tibble or dataframe. |
n_rows |
The number of rows to display (integer). |
lineHeight |
The height of each row in table (percentage). Default "80%". |
dom_opt |
dom options for table components:
|
cols_to_round |
columns to round (vector of column numbers).
See |
dt_options |
list of options to supply to |
sig_digits |
The number of significant digits to round to if |
regex |
If |
selection |
Whether to allow multiple rows to be selected at once, or just a
single row. Either |
table_lengths |
Integer vector of available table lengths. Default: c(10,20,50,100). This will only show if dom_opt includes "l". |
filter_pos |
Location of column filters. One of c("none", "bottom", "top"). Default: "none" |
show_rownames |
Whether to show rownames or not. Default: FALSE |
DT::datatable() object
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.