format_num_auto: Format number as character string (auto)

View source: R/tools.R

format_num_autoR Documentation

Format number as character string (auto)

Description

Formats a number depending on the value as number with space, scientific or big number as k (1 000), M (1 000 000) or B (1 000 000 000)

Usage

format_num_auto(number = 0, digits = 1)

Arguments

number

A number (integer or real)

digits

Number of digits

Value

Formatted number as text

Examples

format_num_kMB(5500, digits = 2)

rolkra/explore documentation built on April 17, 2024, 10:58 p.m.