This function ensures that rounding in R matches rounding in Insight Maker. R base's round() rounds .5 to 0, whereas round_IM() rounds .5 to 1.
Arguments
- x
Value
- digits
Number of digits; optional, defaults to 0
Details
Source: https://stackoverflow.com/questions/12688717/round-up-from-5/12688836#12688836
See also
Other custom:
%REM%()
,
contains_IM()
,
expit()
,
filter_IM()
,
indexof()
,
length_IM()
,
logistic()
,
logit()
,
mod()
,
rbool()
,
rdist()
,
rem()
,
shuffle()
,
substr_i()