Learn R Programming

shapr (version 1.0.6)

round_manual: Round numbers to the specified number of decimal places

Description

This function rounds numbers to the specified number of decimal places using a manual method that avoids the typical rounding issues in R which may vary across different OS.

Usage

round_manual(x, digits = 0L)

Value

Numeric vector. The rounded numbers.

Arguments

x

Numeric vector. The numbers to round.

digits

Integer. The number of digits to round to. Defaults 0.