roundNumericColumns: truncate precision in data.frames

Description Usage Arguments Value

View source: R/utils.R

Description

column by column rounding of data.frame numerical values, useful for readibility

Usage

1
roundNumericColumns(tbl, digits, exponentialColumnNames = NA)

Arguments

tbl

a data.frame

digits

the number of places of decimal precision to preserve

exponentalColumnNames

so that they can be preserved in exponential notation

Value

the transformed data.frame, with rows and columns intact


PriceLab/trenaSGM documentation built on Oct. 5, 2020, 5:40 p.m.