SparkR (version 2.1.2)

initcap: initcap

Description

Returns a new string column by converting the first letter of each word to uppercase. Words are delimited by whitespace.

Usage

initcap(x)

# S4 method for Column initcap(x)

Arguments

x

Column to compute on.

Details

For example, "hello world" will become "Hello World".

See Also

Other string_funcs: ascii, base64, concat_ws, concat, decode, encode, format_number, format_string, 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 {
initcap(df$c)
# }

Run the code above in your browser using DataLab