capitalize: capitalize the first letter of a string

View source: R/capitalize.s

capitalizeR Documentation

capitalize the first letter of a string

Description

Capitalizes the first letter of each element of the string vector.

Usage

capitalize(string)

Arguments

string

String to be capitalized

Value

Returns a vector of charaters with the first letter capitalized

Author(s)

Charles Dupont

Examples

capitalize(c("Hello", "bob", "daN"))

harrelfe/Hmisc documentation built on Nov. 21, 2024, 3:47 p.m.