JCapWords: Capitalises the first letter in each word in a string.

View source: R/strings.R

JCapWordsR Documentation

Capitalises the first letter in each word in a string.

Description

Capitalises the first letter in each word in a string.

Usage

JCapWords(s, split = " ", sep = " ", ...)

Arguments

s

Character vector to be capitalised.

split

Regular expression used to split words to be capitalised.

sep

String used to paste words back together.

...

Additional arguments passed to JCapitalise

Examples

print(JCapWords("the quick brown fox"))
# => [1] "The Quick Brown Fox"


JimMcL/JUtils documentation built on Nov. 7, 2024, 11:25 a.m.