apply_precision: Apply precision (round helper)

View source: R/utils.R

apply_precisionR Documentation

Apply precision (round helper)

Description

Simple wrapper around base round() used by tests and examples.

Usage

apply_precision(x, n = NULL)

Arguments

x

Numeric vector.

n

Integer number of digits to keep. If NULL, return x unchanged.

Value

Numeric vector rounded to n.


kfre documentation built on Aug. 28, 2025, 9:09 a.m.