bcat_fmt_scientific: Label numbers with scientific notation

View source: R/bcat_fmts.R

bcat_fmt_scientificR Documentation

Label numbers with scientific notation

Description

A wrapper for scales::label_scientific to format a numeric vector to scientific notation.

Usage

bcat_fmt_scientific(x, digits = 3, scale = 1, ...)

Arguments

x

a numeric vector

digits

number of digits to show before exponent.

scale

A scaling factor: x will be multiplied by scale before formatting.

...

other arguments passed to label_scientific

Value

A character vector of scientific-notation labels with the same length as x.

See Also

Other formatting: bcat_fmt_comma(), bcat_fmt_date(), bcat_fmt_dollar(), bcat_fmt_percent(), bcat_fmt_pvalue()

Examples


bcat_fmt_scientific(c(1:10)*10e5)


Rbearcat documentation built on March 21, 2026, 5:07 p.m.