dot-first_capital: Create a regular expression where the first letter is capital

.first_capitalR Documentation

Create a regular expression where the first letter is capital

Description

Returns a regular expression that necessitates that the first letter is capital and the rest can be any case.

Usage

.first_capital(x, location = "both")

Arguments

x

A vector of strings.

location

Whether to "start", "end" or "both" with a capital letter.

Value

A string pattern.


serghiou/rtransparent documentation built on Dec. 26, 2024, 8:19 p.m.