format_string {SparkR}R Documentation

format_string

Description

Formats the arguments in printf-style and returns the result as a string column.

Usage

## S4 method for signature 'character,Column'
format_string(format, x, ...)

format_string(format, x, ...)

See Also

Other string_funcs: ascii, ascii; base64, base64; concat_ws, concat_ws; concat, concat; decode, decode; encode, encode; format_number, format_number; 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; translate, translate; trim, trim; unbase64, unbase64; upper, upper

Examples

## Not run: format_string('%d %s', df$a, df$b)

[Package SparkR version 1.6.0 Index]