format_number: format_number, fn

Description Usage Arguments Value Examples

Description

A friendly function to simplify the output of nicely formatted numbers.

format_number

The original function name.

fn

A shortcut function alias.


TODO: This function is a bit procedural and is probably not optimal from a in terms of performances. We should test it with large volumes of numbers and optimize it as needed.

Usage

1
2
3
fn(x, digits = NULL, ...)

format_number(x, digits = NULL, ...)

Arguments

x

a vector of numbers

digits

the number of digits to be displayed

Value

nicely formatted numbers

Examples

1
2
format_number(c(10.555,3.14),2)
fn(c(10.555,3.14),2)

daviddoret/GRCRToolkit documentation built on May 23, 2019, 7:31 a.m.