bround {SparkR}R Documentation

bround

Description

Returns the value of the column 'e' rounded to 'scale' decimal places using HALF_EVEN rounding mode if 'scale' >= 0 or at integral part when 'scale' < 0. Also known as Gaussian rounding or bankers' rounding that rounds to the nearest even number. bround(2.5, 0) = 2, bround(3.5, 0) = 4.

Usage

## S4 method for signature 'Column'
bround(x, scale = 0)

bround(x, ...)

See Also

Other math_funcs: acos; asin; atan2; atan; bin, bin; cbrt, cbrt; ceil, ceil, ceiling; conv, conv; corr; cosh; cos; covar_pop; cov, covar_samp; expm1; exp; factorial; floor; hex, hex; hypot, hypot; log10; log1p; log2; log; pmod, pmod; rint, rint; round; shiftLeft, shiftLeft; shiftRightUnsigned, shiftRightUnsigned; shiftRight, shiftRight; sign, signum, signum; sinh; sin; sqrt; tanh; tan; toDegrees, toDegrees; toRadians, toRadians; unhex, unhex

Examples

## Not run: bround(df$c, 0)

[Package SparkR version 2.0.0 Index]