Skip to contents

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.