View source: R/number_printing.R
This function replaces the numbers in a data.table with rounded versions that are limited to a specified number of decimal places. The changes are made by reference.
1 | round4display(dt, var_list, decimals = 0)
|
dt |
Data.table to be changed |
var_list |
A vector of variable names (as characters) |
decimals |
The number of decimals to display |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.