capwords: Capitalize the first letter of each word in a character...

Description Usage Arguments Value Examples

Description

capwords is a slightly simplified version of the capwords example function provided in the toupper documentation.

Usage

1

Arguments

s

A character vector, or an object that can be coerced to character by as.character.

Value

A string where the first letter of each word is capitalized, and the remaining letters are lower-case.

Examples

1
2
capwords("the quick brown fox did a thing.")
capwords("THE QUICK BROWN FOX DID A THING.")

bochocki/slackrsheets documentation built on May 8, 2019, 9:46 a.m.