roundUp: Function for Rounding Up with a Given Sensitivity

View source: R/other_functions.R

roundUpR Documentation

Function for Rounding Up with a Given Sensitivity

Description

Function rounds the numbers up with the given sensitivity.

Usage

roundUp(x, to = 1)

Arguments

x

numeric. A numeric vector.

to

numeric. Sensitivity of the rounding.

Value

Numeric value or vector.

Author(s)

Omer Kara

Examples

roundUp(2.67896, to = 1)
roundUp(2.67896, to = 0.1)
roundUp(2.67896, to = 0.01)
roundUp(2.67896, to = 0.001)


omerkara/okara documentation built on Nov. 21, 2023, 7:56 p.m.