capitalize: Capitalize a substring

Description Usage Arguments Value Examples

View source: R/capitalize.R

Description

Capitalizes the first letter (by default) or a substring of a given character string or each element of the character vector

Usage

1
capitalize(x, start = 1, end = 1)

Arguments

x

a character string or a character vector

start

starting position of the susbtring (default = 1)

end

ending position of the susbtring (default = 1)

Value

a character string or a character vector

Examples

1
2
capitalize("abc")
capitalize(c("abc", "xyx"), start = 2, end = 3)

kim documentation built on April 25, 2021, 1:06 a.m.