title_case: Remove Leading and Trailing White Space

View source: R/functions.R

title_caseR Documentation

Remove Leading and Trailing White Space

Description

Remove leading and/or trailing white space from character vectors.

Usage

title_case(s, strict = FALSE, ignore = NULL)

Arguments

s

a character vector

strict

logical: if TRUE, only the first letter of each word is uppercase

ignore

character

Details

Set string in title case.

Value

a character vector

Author(s)

Enrico Schumann

See Also

tolower, toupper.

Examples

title_case("text mining")

enricoschumann/textutils documentation built on April 2, 2024, 11:12 a.m.