SparkR (version 2.1.2)

reverse: reverse

Description

Reverses the string column and returns it as a new string column.

Usage

reverse(x)

# S4 method for Column reverse(x)

Arguments

x

Column to compute on.

See Also

Other string_funcs: ascii, base64, concat_ws, concat, decode, encode, format_number, format_string, initcap, instr, length, levenshtein, locate, lower, lpad, ltrim, regexp_extract, regexp_replace, rpad, rtrim, soundex, substring_index, translate, trim, unbase64, upper

Examples

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

Run the code above in your browser using DataLab