isFirstLetterUpperCase: Is the first letter uppercase?

View source: R/utils_string.R

isFirstLetterUpperCaseR Documentation

Is the first letter uppercase?

Description

Returns a logical indicating whether the first letter of a character string is uppercase.

Usage

isFirstLetterUpperCase(x)

Arguments

x

character string

Details

If the input is an empty string, the function returns TRUE.

Value

logical; if TRUE, the first letter of the input string is uppercase.

Author(s)

Samuel Leung, Derek Chiu

Examples

isFirstLetterUpperCase("peanut butter")
isFirstLetterUpperCase("peanut Butter")
isFirstLetterUpperCase("Samuel butter")
isFirstLetterUpperCase("")

TalhoukLab/biostatUtil documentation built on April 14, 2025, 4:15 a.m.