SparkR (version 2.1.2)

trim: trim

Description

Trim the spaces from both ends for the specified string column.

Usage

trim(x)

# S4 method for Column trim(x)

Arguments

x

Column to compute on.

See Also

Other string_funcs: ascii, base64, concat_ws, 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, unbase64, upper

Examples

Run this code
# NOT RUN {
trim(df$c)
# }

Run the code above in your browser using DataCamp Workspace