Rounds a value to nearest increment
rounder(x, inc, fun = "round")
The value to be rounded
The increment to round to
The rounding function. Valid options are 'floor', 'round' and 'ceiling'.
an object of class numeric
rounder(.93, .05, "floor")
rounder(.93, .05, "ceiling")
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.