Learn R Programming

mlr3misc (version 0.15.1)

capitalize: Capitalize the First Letter of Strings

Description

Takes a character vector and changes the first letter of each element to uppercase.

Usage

capitalize(str)

Value

Character vector, same length as str.

Arguments

str

(character()).

Examples

Run this code
capitalize("foo bar")

Run the code above in your browser using DataLab