RDocumentation
Moon
Learn R
Search all packages and functions
DescTools (version 0.99.15)
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
DataLab