translate {SparkR}R Documentation

translate

Description

Translate any character in the src by a character in replaceString. The characters in replaceString is corresponding to the characters in matchingString. The translate will happen when any character in the string matching with the character in the matchingString.

Usage

## S4 method for signature 'Column,character,character'
translate(x, matchingString,
  replaceString)

translate(x, matchingString, replaceString)

See Also

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

Examples

## Not run: translate(df$c, 'rnlt', '123')

[Package SparkR version 1.6.1 Index]