toTitleCase_always: Always Convert Text to Title Case

Description Usage Arguments Details Value Author(s)

Description

Convert a character vector to title case, less carefully than toTitleCase does. Unlike toTitleCase, requires loading no packages (other than this one).

Usage

1

Arguments

text

A character string to be converted to title case.

Details

Modified by Ryan Kyle, based on function from https://stackoverflow.com/questions/6364783/capitalize-the-first-letter-of-both-words-in-a-two-word-string.

Value

A character vector of the same length as text, without names.

Author(s)

Andrie de Vries


rpkyle/cscmisc documentation built on May 13, 2019, 12:06 p.m.