RoundTo {OpeNoise} | R Documentation |
Round to Multiple
Description
Returns a number rounded to the nearest specified multiple.
Usage
RoundTo(x, multiple = 1, FUN = round)
Arguments
x |
is a vector of value in decibel (dB) |
multiple |
numeric. The multiple to which the number is to be rounded. Default is 1. |
FUN |
the rounding function as character or as expression. Can be one out of trunc, ceiling, round (default) or floor. |
Value
value or vector of values rounded
Author(s)
Andri Signorell andri@signorell.net
Examples
#data("P1FA")
RoundTo(x = P1FA$LAeq, multiple = 0.5)[1:10]
[Package OpeNoise version 0.2-18 Index]