report: Report formatted number

View source: R/report.R

reportR Documentation

Report formatted number

Description

Report a number, rounded to a specific number of decimals (defaults to two), using formatC. Intended for 'R Markdown' reports.

Usage

report(x, digits = 2, equals = TRUE)

Arguments

x

Numeric. Value to be reported

digits

Integer. Number of digits to round to.

equals

Logical. Whether to report an equals (or: smaller than) sign.

Value

An atomic character vector.

Author(s)

Caspar J. van Lissa

Examples

report(.0234)

cjvanlissa/worcs documentation built on Nov. 7, 2024, 1:20 p.m.