capwords: Capitalize Words

Description Usage Arguments Value See Also Examples

View source: R/capwords.R

Description

Capitalize the first letter of every word.

Usage

1
capwords(s, strict = TRUE)

Arguments

s

A vector of strings.

strict

A logical indicating whether other letters should be converted to lower case, default TRUE.

Value

A vector the same length as s.

See Also

casefold, from which the function was derived.

Examples

1
2
capwords(c("using AIC for model selection"))
capwords(c("using AIC", "for MODEL selection"), strict=FALSE)

JVAdams/jvamisc documentation built on Aug. 11, 2021, 6:43 a.m.