Capitalize a string.

Share:

Description

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

Usage

1

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

1
pystr_capitalize("ONCE UPON A TIME, ")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.