report: Report formatted number

Description Usage Arguments Value Author(s) Examples

View source: R/RFunctions.R

Description

Report a number, rounded to a specific number of decimals (defaults to two), using C-style formats. Intended for RMarkdown reports.

Usage

1
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

1
report(.0234)

cjvanlissa/motley documentation built on Sept. 23, 2019, 7:39 p.m.