lpad {SparkR}R Documentation

lpad

Description

Left-pad the string column with

Usage

lpad(x, len, pad)

## S4 method for signature 'Column,numeric,character'
lpad(x, len, pad)

Arguments

x

the string Column to be left-padded.

len

maximum length of each output result.

pad

a character string to be padded with.

Note

lpad since 1.5.0

See Also

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

Examples

## Not run: lpad(df$c, 6, '#')

[Package SparkR version 2.1.3 Index]