tocase: Change case of a character vector

Description Usage Arguments Value Examples

View source: R/trahelyk.R

Description

Change case of a character vector

Usage

1
tocase(x, case)

Arguments

x

a character vector

case

one of "upper", "lower", "title", or "sentence".

Value

A character vector of the same length, with the first letter of each word, separated by a space, capitalized.

Examples

1
2
x <- "the quick BROWN fox jumps over the LaZy Dog."
totitle(x)

trahelyk/trahelyk_pkg documentation built on June 14, 2021, 9:25 p.m.