create_dt | R Documentation |
See https://martinctc.github.io/blog/vignette-downloadable-tables-in-rmarkdown-with-the-dt-package/ for more.
create_dt(x, rounding = 1, freeze = 2, percent = FALSE)
x |
Data frame to be passed through. |
rounding |
Numeric vector to specify the number of decimal points to display |
freeze |
Number of columns from the left to 'freeze'. Defaults to 2, which includes the row number column. |
percent |
Logical value specifying whether to display numeric columns as percentages. |
This is exported from wpa::create_dt()
.
Returns an HTML widget displaying rectangular data.
Other Import and Export:
copy_df()
,
export()
,
import_query()
,
prep_query()
output <- hrvar_count(pq_data, return = "table")
create_dt(output)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.