round_to_nearest: Round to nearest

View source: R/data_transformation.R

round_to_nearestR Documentation

Round to nearest

Description

Round to nearest

Usage

round_to_nearest(x, n)

Arguments

x

The value to round.

n

The base to round to.

Value

An integer of the rounded x to the nearest n.


stuart-morrison/sumo documentation built on Jan. 2, 2025, 8:45 p.m.