Learn R Programming

tidySEM (version 0.2.8)

report: 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)

Value

An atomic character vector.

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.

Author

Caspar J. van Lissa

Examples

Run this code
report(.0234)

Run the code above in your browser using DataLab