signum

0th

Percentile

signum

Computes the signum of the given value.

Usage
signum(x)

# S4 method for Column signum(x)

# S4 method for Column sign(x)

Arguments
x

Column to compute on.

Note

signum since 1.5.0

sign since 1.5.0

See Also

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

Aliases
  • signum
  • signum
  • signum,Column-method
  • sign
  • sign,Column-method
Examples
# NOT RUN {
signum(df$c)
# }
# NOT RUN {
sign(df$c)
# }
Documentation reproduced from package SparkR, version 2.1.2, License: Apache License (== 2.0)

Community examples

Looks like there are no examples yet.