format_string {SparkR} | R Documentation |
Formats the arguments in printf-style and returns the result as a string column.
format_string(format, x, ...) ## S4 method for signature 'character,Column' format_string(format, x, ...)
format |
a character object of format strings. |
x |
a Column. |
... |
additional Column(s). |
format_string since 1.5.0
Other string_funcs: ascii
,
base64
, concat_ws
,
concat
, decode
,
encode
, format_number
,
initcap
, instr
,
length
, levenshtein
,
locate
, lower
,
lpad
, ltrim
,
regexp_extract
,
regexp_replace
, reverse
,
rpad
, rtrim
,
soundex
, substring_index
,
translate
, trim
,
unbase64
, upper
## Not run: format_string('%d %s', df$a, df$b)