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")

textutils documentation built on May 29, 2024, 10:37 a.m.