initcap {SparkR} | R Documentation |
Returns a new string column by converting the first letter of each word to uppercase. Words are delimited by whitespace.
## S4 method for signature 'Column' initcap(x) initcap(x)
For example, "hello world" will become "Hello World".
Other string_funcs: ascii
,
ascii
; base64
,
base64
; concat_ws
,
concat_ws
; concat
,
concat
; format_number
,
format_number
; format_string
,
format_string
; instr
,
instr
; length
;
levenshtein
, levenshtein
;
locate
, locate
;
lower
, lower
;
lpad
, lpad
;
ltrim
, ltrim
;
regexp_extract
,
regexp_extract
;
regexp_replace
,
regexp_replace
; reverse
,
reverse
; rpad
,
rpad
; rtrim
,
rtrim
; soundex
,
soundex
; substring_index
,
substring_index
; translate
,
translate
; trim
,
trim
; unbase64
,
unbase64
; upper
,
upper
## Not run: initcap(df$c)