capitalize: Capitalizes the characters Making the first letter uppercase

View source: R/utils.R

capitalizeR Documentation

Capitalizes the characters Making the first letter uppercase

Description

Capitalizes the characters Making the first letter uppercase

Usage

capitalize(x, force_tolower = FALSE)

Arguments

x

A vector of character strings to be capitalized.

force_tolower

Whether to force the remaining letters to be lowercase.

Examples

x <- c(
  "hello world",
  "Hello world",
  "hello World"
)
capitalize(x)

thisutils documentation built on July 3, 2025, 9:09 a.m.