Learn R Programming

QuantTools (version 0.5.3)

iround: Round numbers to specified interval

Description

Round numbers to specified interval

Usage

iround(x, interval)

Arguments

x
numeric vector to be rounded
interval
the interval the values should be rounded towards

Value

A numeric vector with x rounded to the desired interval.