Learn R Programming

cardargus (version 0.2.1)

compress_number: Compress number to abbreviated format

Description

Compress number to abbreviated format

Usage

compress_number(x, digits = 1)

Value

Character string with abbreviated number

Arguments

x

Numeric value to compress

digits

Number of decimal places

Examples

Run this code
compress_number(1234567)
compress_number(36400000)

Run the code above in your browser using DataLab