capitalize

0th

Percentile

capitalize the first letter of a string

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

Keywords
character , manip
Usage
capitalize(string)
Arguments
string
String to be capitalized
Value

Returns a vector of charaters with the first letter capitalized

Aliases
  • capitalize
Examples
library(Hmisc) capitalize(c("Hello", "bob", "daN"))
Documentation reproduced from package Hmisc, version 3.17-4, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.