DescTools (version 0.99.13)

StrCap: Capitalize the First Letter of a String

Description

Capitalize the first letter of each element of the string vector.

Usage

StrCap(x)

Arguments

x
String to be capitalized.

Value

  • Returns a vector of charaters with the first letter capitalized

Examples

Run this code
StrCap(c("Hello", "bob", "daN"))

Run the code above in your browser using DataCamp Workspace