form_nice: Function to produce nice numeric labels

View source: R/form_nice.R

form_niceR Documentation

Function to produce nice numeric labels

Description

Function to produce nice numeric labels

Usage

form_nice(x, big.mark = ",", scientific = FALSE, drop0trailing = TRUE)

Arguments

x

A scalar or vector passed on to format().

big.mark

Same as in format().

scientific

Same as in format().

drop0trailing

as in format().

...

Other arguments passed on to format().

Author(s)

Andreas Scharmueller, andschar@proton.me

Examples

x = c(0.0001, 5000, 2.45e5)
form_nice(x)


andschar/andmisc documentation built on Jan. 19, 2025, 10:46 a.m.