SparkR (version 2.1.2)

concat_ws: 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 character,Column concat_ws(sep, x, ...)

Arguments

sep

separator to use.

x

column to concatenate.

...

other columns to concatenate.

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

Run this code
# NOT RUN {
concat_ws('-', df$s, df$d)
# }

Run the code above in your browser using DataLab