formatNum: Simple reusable functions to format numbers

Description Usage Arguments Functions Examples

Description

Simple reusable functions to format numbers

Usage

1
2
3
4
5
6
7
round_mean(x, ndigits = 2)

round_std(x, ndigits = 2)

percent(x, ndigits = 1)

round_exact(x, ndigits = 1)

Arguments

x

numbers to be converted

ndigits

number of digits to which to round the number

Functions

Examples

1
2
3
4
round_mean(mtcars$mpg)
round_exact(2, ndigits = 3)
round_std(mtcars$mpg)
percent(0.157389)

flaneuse/llamar documentation built on May 16, 2019, 1:18 p.m.