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 April 7, 2023, 8:37 p.m.