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)

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

## Not run: initcap(df$c)

[Package SparkR version 2.0.0 Index]