strs_title: Convert string to title case

View source: R/title.R

strs_titleR Documentation

Convert string to title case

Description

strs_title converts each element of a character vector to title case, based on the specified locale. It is similar to Python's str.title() method.

Usage

strs_title(string, locale = "en")

Arguments

string

A character vector to be converted to title case.

locale

A character string representing the locale to be used for the conversion.

Value

A character vector of the same length as string, with each element converted to title case.

See Also

Python str.title() documentation

Examples

strs_title("hello world")
strs_title("guten tag", locale = "de")

strs documentation built on Sept. 11, 2024, 6:44 p.m.