Learn R Programming

taylor (version 3.2.0)

title_case: Convert string to title case

Description

Capitalize the first letter of each word, and convert the remaining string to lower case.

Usage

title_case(string)

Value

A character string with the first letter of each word capitalized.

Arguments

string

String to modify.

Examples

Run this code
title_case("taylor swift")
title_case("Taylor Swift")
title_case("TAYLOR SWIFT")

Run the code above in your browser using DataLab