Skip to content

It rounds bigger than 1 values, like to the closest 5, 10, 1000, etc

Usage

rounder(x, roundTo, dir = "up")

Arguments

x

is a numeric vector or variable.

roundTo

a numeric value indicating the closest number to round to.

dir

a character value indicating wheter to round "up" or "down"

Value

an equal length vector.

Author

Alejandro Abraham a.abraham@innovationteam.eu