title_case: Convert string to title case

View source: R/misc.R

title_caseR Documentation

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)

Arguments

string

String to modify.

Value

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

Examples

title_case("taylor swift")
title_case("Taylor Swift")
title_case("TAYLOR SWIFT")

taylor documentation built on Nov. 10, 2022, 6:05 p.m.