sigDF: rounds the values in a data.frame

Description Usage Arguments Value Examples

Description

for a data.frame or list, round all numerical variables to specified number of significant digits

Usage

1
sigDF(x, digits = 3)

Arguments

x

a data.frame or list

digits

teh number of significant digits

Value

the same object and size as x, but all numerical values are rounded

Examples

1
2
3
a <- data.frame(num = rnorm(4),
                char = letters[1:4])
sigDF(a, 3)

mengchen18/proturn documentation built on May 30, 2019, 4:37 p.m.