conv

0th

Percentile

conv

Convert a number in a string column from one base to another.

Usage
conv(x, fromBase, toBase)

# S4 method for Column,numeric,numeric conv(x, fromBase, toBase)

Arguments
x

column to convert.

fromBase

base to convert from.

toBase

base to convert to.

Note

conv since 1.5.0

See Also

Other math_funcs: acos, asin, atan2, atan, bin, bround, cbrt, ceil, 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

Aliases
  • conv
  • conv
  • conv,Column,numeric,numeric-method
Examples
# NOT RUN {
conv(df$n, 2, 16)
# }
Documentation reproduced from package SparkR, version 2.1.2, License: Apache License (== 2.0)

Community examples

Looks like there are no examples yet.