capitalize: Capitalize Words

View source: R/capitalize.R

capitalizeR Documentation

Capitalize Words

Description

Make every word in string start in uppercase.

Usage

capitalize(x, strict = TRUE)

Arguments

x

a string (one or more words) to be formatted.

strict

whether existing uppercase letters should be lowercased.

Value

String with every word starting in uppercase.

Note

Based on example in help(chartr). Better for multi-word strings than Hmisc::capitalize.

See Also

toTitleCase does not capitalize all words.


arnima-github/arni documentation built on Oct. 28, 2023, 6:18 p.m.