SparkR (version 2.1.2)

rpad: rpad

Description

Right-padded with pad to a length of len.

Usage

rpad(x, len, pad)

# S4 method for Column,numeric,character rpad(x, len, pad)

Arguments

x

the string Column to be right-padded.

len

maximum length of each output result.

pad

a character string to be padded with.

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, reverse, rtrim, soundex, substring_index, translate, trim, unbase64, upper

Examples

Run this code
# NOT RUN {
rpad(df$c, 6, '#')
# }

Run the code above in your browser using DataCamp Workspace