ucfirst: Capitalize the first letter

View source: R/misc.R

ucfirstR Documentation

Capitalize the first letter

Description

Capitalizes the first character is a string. Not particularly robust. Copied over from Perl code.

Usage

ucfirst(str)

Arguments

str

a string.

Value

The same string with the first letter capitalized.

Examples

ucfirst("foo bar")

JoeyStanley/joeyr documentation built on July 4, 2025, 11:10 a.m.