ceiling1: Round to ceiling of specified level

View source: R/ceiling1.R

ceiling1R Documentation

Round to ceiling of specified level

Description

Raises a number to the nearest 0.1, 0.5, 1, 5, 10, etc.

Usage

ceiling1(x, level)

Arguments

x

A number

level

The "level" to round the number to

Value

A rounded number

Examples

# Raise 0.34 to nearest 0.5
ceiling1(0.34, level=0.5)
#' Raise 35.6 to nearest 60
ceiling1(35.6, level=50)

cfree14/freeR documentation built on Aug. 22, 2023, 11:12 p.m.