Summer Deals - hours only!Up to 80% off on all courses and bundles.-Close
Strings basics
Regular expressions
Modifying strings
16. Changing the case of strings
Summary

Instruction

Excellent job! There's another thing that's good to know when you're working with strings: the ability to make all letters either upper case (all capitals) or lower case. There are two functions you'll need: tolower() and toupper().

> toupper("LeT's CoDe!")
[1] "LET'S CODE!"
> tolower("LeT's CoDe!")
[1] "let's code!"

Exercise

Change all letters in the countries vector to capitals. Use the toupper() function.