int_spacer: Round a number to the nearest integer and format according to...

View source: R/int_spacer.R

int_spacerR Documentation

Round a number to the nearest integer and format according to WHO style guide

Description

Round a number to the nearest integer and format according to WHO style guide. This means using non-breaking spaces as thousands separators, but don;t do that for numbers between 1000 and 9999

Usage

int_spacer(x)

Arguments

x

A number to be rounded and spaced

Value

A string

Examples

int_spacer(2.4)
int_spacer(24.5)
int_spacer(9876)
int_spacer(1234567.8)
int_spacer(c(123456, 7890123))


glaziou/gtbreport documentation built on July 12, 2024, 5:05 p.m.