powered by
Computes the first argument into a binary from a string using the provided character set (one of 'US-ASCII', 'ISO-8859-1', 'UTF-8', 'UTF-16BE', 'UTF-16LE', 'UTF-16').
encode(x, charset)# S4 method for Column,character encode(x, charset)
# S4 method for Column,character encode(x, charset)
Column to compute on.
Character set to use
Other string_funcs: ascii, base64, concat_ws, concat, decode, format_number, format_string, initcap, instr, length, levenshtein, locate, lower, lpad, ltrim, regexp_extract, regexp_replace, reverse, rpad, rtrim, soundex, substring_index, translate, trim, unbase64, upper
ascii
base64
concat_ws
concat
decode
format_number
format_string
initcap
instr
length
levenshtein
locate
lower
lpad
ltrim
regexp_extract
regexp_replace
reverse
rpad
rtrim
soundex
substring_index
translate
trim
unbase64
upper
# NOT RUN { encode(df$c, "UTF-8") # }
Run the code above in your browser using DataLab