SparkR (version 2.1.2)

bin: bin

Description

An expression that returns the string representation of the binary value of the given long column. For example, bin("12") returns "1100".

Usage

bin(x)

# S4 method for Column bin(x)

Arguments

x

Column to compute on.

See Also

Other math_funcs: acos, asin, atan2, atan, 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, signum, sinh, sin, sqrt, tanh, tan, toDegrees, toRadians, unhex

Examples

Run this code
# NOT RUN {
bin(df$c)
# }

Run the code above in your browser using DataCamp Workspace