concat_ws {SparkR}R Documentation

concat_ws

Description

Concatenates multiple input string columns together into a single string column, using the given separator.

Usage

concat_ws(sep, x, ...)

## S4 method for signature 'character,Column'
concat_ws(sep, x, ...)

Arguments

sep

separator to use.

x

column to concatenate.

...

other columns to concatenate.

Note

concat_ws since 1.5.0

See Also

Other string_funcs: ascii, base64, concat, decode, encode, format_number, format_string, initcap, instr, length, levenshtein, locate, lower, lpad, ltrim, regexp_extract, regexp_replace, reverse, rpad, rtrim, soundex, substring_index, translate, trim, unbase64, upper

Examples

## Not run: concat_ws('-', df$s, df$d)

[Package SparkR version 2.1.3 Index]