signum {SparkR} | R Documentation |
Computes the signum of the given value.
signum(x) ## S4 method for signature 'Column' signum(x) ## S4 method for signature 'Column' sign(x)
x |
Column to compute on. |
signum since 1.5.0
sign since 1.5.0
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
## Not run: signum(df$c)
## Not run: sign(df$c)