JCapitalise: Capitalises the first letter in a string.

View source: R/strings.R

JCapitaliseR Documentation

Capitalises the first letter in a string.

Description

Copied (and changed) from the doc for toupper.

Usage

JCapitalise(s, strict = FALSE, collapse = NULL)

Arguments

s

Character vector to be capitalised

strict

If TRUE, the remainder of the string is converted to lower case.

collapse

String used to collapse multiple character strings.

Examples

print(JCapitalise("the quick brown fox"))
# => [1] "The quick brown fox"


JimMcL/JUtils documentation built on Nov. 7, 2024, 11:25 a.m.