Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (27 sloc) 0.614 kb
\title{Round to multiple of any number.}
round_any(x, accuracy, f = round)
\item{x}{numeric vector to round}
\item{accuracy}{number to round to}
\item{f}{rounding function: \code{\link{floor}},
\code{\link{ceiling}} or \code{\link{round}}}
Round to multiple of any number.
round_any(135, 10)
round_any(135, 100)
round_any(135, 25)
round_any(135, 10, floor)
round_any(135, 100, floor)
round_any(135, 25, floor)
round_any(135, 10, ceiling)
round_any(135, 100, ceiling)
round_any(135, 25, ceiling)
Jump to Line
Something went wrong with that request. Please try again.