roundWZero: Round numeric values keeping trailing zeros.

Description Usage Arguments Examples

View source: R/roundWZero.R

Description

roundWZero rounds the values in its first argument to the specified number of decimal places (default 0).

Usage

1
roundWZero(x, digits = 0)

Arguments

x

a numeric vector.

digits

integer indicating the number of decimal places

Examples

1
2
roundWZero(c(100,10,1,0.1,0.01,0.001,0.0001),digits = 1)
roundWZero(c(100,10,1,0.1,0.01,0.001,0.0001),digits = -1)

csmoxford/prettyTables documentation built on May 14, 2019, 12:24 p.m.