Learn R Programming

textutils (version 0.1-9)

title_case: 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

Value

a character vector

Details

Set string in title case.

See Also

tolower, toupper.

Examples

Run this code
# NOT RUN {
title_case("text mining")
# }

Run the code above in your browser using DataLab