In this tutorial you will learn about the R String toupper and its application with practical example.
R String toupper
The toupper() function is used to convert given string characters to uppercase.
Syntax:-
1 |
<strong>toupper</strong>(str) |
Above is the general syntax of toupper() function, here
str:- It is a vector input representing a string.
Example:-
1 2 3 |
print("W3Adda - R toupper function.") result <- toupper("Hello, W3Adda") print(result) |
Output:-