strs_upper {strs} | R Documentation |
Convert string to uppercase
Description
strs_upper
converts each element of a character vector to uppercase, based
on the specified locale. It is similar to Python's str.upper()
method.
Usage
strs_upper(string, locale = "en")
Arguments
string |
A character vector to be converted to uppercase. |
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 uppercase.
See Also
Python str.upper() documentation
Examples
strs_upper("hello world")
strs_upper("Àpfel", locale = "de")
[Package strs version 0.1.0 Index]