sci_md: Scientific notation for markdown

View source: R/formatting.R

sci_mdR Documentation

Scientific notation for markdown

Description

Scientific notation for markdown

Usage

sci_md(x, digits = 2, lb = 0.0095, ub = 99.5, align = FALSE)

Arguments

x

numeric vector

digits

number of decimal places (of the mantissa, for numbers in scientific notation)

lb, ub

numbers at or below lb or at or above ub are written in scientific notation (e.g., 2.46 × 10^7^); numbers between them are written as usual

align

if TRUE, the numbers are aligned on the decimal point with align_chr()

Value

A character vector

Examples

sci_md(c(.0045,1.44, 24567857.45))

apa7 documentation built on Dec. 1, 2026, 5:06 p.m.