Provides extra options for rounding numbers, such as rounding a value to uneven intervals
and setting those intervals to 'snap' or pass through a defined origin value. Can also be used on
Extent objects from the raster package.
AProunder(value, interval, direction = "closest", snap = 0)numeric or Extent object. Input value
numeric. The interval to which the input value should be rounded
character. The rounding direction. Can be 'closest', 'up' or 'down' for numeric
value arguments or 'closest', 'in' or 'out' for Extent objects.
numeric. An origin value through which the interval with pass through. Default is 0.
Rounded number or Extent object