Learn R Programming

report (version 0.1.0)

format_value: Value Formatting

Description

Value Formatting

Usage

format_value(x, digits = 2)

Arguments

x

Numeric value.

digits

Number of significant digits.

Examples

Run this code
# NOT RUN {
format_value(1.20)
format_value(1.2)
format_value(1.2012313)
format_value(c(0.0045, 234, -23))
# }

Run the code above in your browser using DataLab