round4display: Round data.table Columns for Displaying

Description Usage Arguments

View source: R/number_printing.R

Description

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.

Usage

1
round4display(dt, var_list, decimals = 0)

Arguments

dt

Data.table to be changed

var_list

A vector of variable names (as characters)

decimals

The number of decimals to display


kbrevoort/kpbkh documentation built on May 20, 2019, 8:11 a.m.