round_up: Round a number up

Description Usage Arguments Details

View source: R/formatting.R

Description

Round a number up

Usage

1
round_up(x, digits = -1)

Arguments

x

a numeric vector.

digits

integer indicating the number of decimal places. Negative values are allowed (see 'Details').

Details

Rounding to a negative number of digits means rounding to a power of ten, so for example round_up(x, digits = -2) rounds to the nearest hundred.


allenbaron/JABmisc documentation built on July 4, 2021, 9:56 a.m.