rounder

0th

Percentile

Round to Increment

Rounds a value to nearest increment

Usage
rounder(x, inc, fun = "round")
Arguments
x
The value to be rounded
inc
The increment to round to
fun
The rounding function. Valid options are 'floor', 'round' and 'ceiling'.
Value

an object of class numeric

Aliases
  • rounder
Examples
rounder(.92, .05)
rounder(.93, .05)
rounder(.93, .05, "floor")
rounder(.93, .05, "ceiling")
Documentation reproduced from package Rmisc, version 1.5, License: GPL-3

Community examples

Looks like there are no examples yet.