Imagine you have a string in R and you want to convert it to uppercase. How would you do this?

  • Use the to_upper() function
  • Use the toupper() function
  • Use the upper() function
  • Use the uppercase() function
In R, the toupper() function is used to convert a string to uppercase. For example, toupper("Hello") would return "HELLO".
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *