initcap {SparkR}R Documentation

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 signature 'Column'
initcap(x)

Arguments

x

Column to compute on.

Details

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

Note

initcap since 1.5.0

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

## Not run: initcap(df$c)

[Package SparkR version 2.2.2 Index]