Learn R Programming

kfre (version 0.0.2)

apply_precision: Apply precision (round helper)

Description

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

Usage

apply_precision(x, n = NULL)

Value

Numeric vector rounded to n.

Arguments

x

Numeric vector.

n

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