powered by
Left-pad the string column with
lpad(x, len, pad)# S4 method for Column,numeric,character lpad(x, len, pad)
# S4 method for Column,numeric,character lpad(x, len, pad)
the string Column to be left-padded.
maximum length of each output result.
a character string to be padded with.
Other string_funcs: ascii, base64, concat_ws, concat, decode, encode, format_number, format_string, initcap, instr, length, levenshtein, locate, lower, ltrim, regexp_extract, regexp_replace, reverse, rpad, rtrim, soundex, substring_index, translate, trim, unbase64, upper
ascii
base64
concat_ws
concat
decode
encode
format_number
format_string
initcap
instr
length
levenshtein
locate
lower
ltrim
regexp_extract
regexp_replace
reverse
rpad
rtrim
soundex
substring_index
translate
trim
unbase64
upper
# NOT RUN { lpad(df$c, 6, '#') # }
Run the code above in your browser using DataLab