Capitalize

capitalize(object, ...)

# S4 method for character
capitalize(object, strict = FALSE)

Arguments

object

Object.

...

Additional arguments.

strict

logical(1). Enforce strict renaming of words containing multiple capital letters, including acronyms.

Value

Modified object.

Note

Updated 2019-09-09.

Examples

x <- c("the quick Brown fox", "using AIC for model selection") capitalize(x, strict = FALSE)
#> [1] "The Quick Brown Fox" "Using AIC For Model Selection"
capitalize(x, strict = TRUE)
#> [1] "The Quick Brown Fox" "Using Aic For Model Selection"