Learn R Programming

pystr (version 2.0.0)

pystr_capitalize: Capitalize a string.

Description

Return a copy of the string with its first character capitalized and the rest lowercased.

Usage

pystr_capitalize(str)

Arguments

str
A character vector.

Value

A character vector.

References

https://docs.python.org/3/library/stdtypes.html#str.capitalize

See Also

pystr_title

Examples

Run this code
pystr_capitalize("ONCE UPON A TIME, ")

Run the code above in your browser using DataLab