roundf: Prepare values for table

Description Usage Arguments Value See Also

View source: R/utils.R

Description

Prepares values for publication in wide tables by dividing by 1000 and rounding and truncating using sprintf(). Vectorised to work on single values, vectors, and data.frames.

Usage

1
roundf(x, fmt = "%.1f")

Arguments

x

Value to be transformed.

fmt

Inherits from sprintf(): the format to be returned.

Value

Tranfsormed variable x.

See Also

sprintf.


ukgovdatascience/eesectors documentation built on Sept. 11, 2020, 12:19 p.m.