adjust_digits: Plausible rounding

View source: R/adjust_digits.R

adjust_digitsR Documentation

Plausible rounding

Description

Rounds a quantitative laboratory result to a reasonable number of decimal places.

Usage

adjust_digits(x)

Arguments

x

numeric

Value

List containing a rounded value of x and the number of decimal places

Examples

adjust_digits(0.001234)
adjust_digits(0)
adjust_digits(-12.34)
adjust_digits(5.4321)$digits

reflimR documentation built on May 29, 2024, 12:18 p.m.