Skip to contents

Capitalize

Usage

capitalize(object, ...)

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

Arguments

object

Object.

strict

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

...

Additional arguments.

Value

Modified object.

Note

Updated 2020-01-27.

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"