Use the built-in character functions tolower
and toupper
to manipulate and print the following string.
"species"
in all capital letters"SPECIES"
in all lower case lettersThere are other built-in character functions in R, but they are surprisingly clunky and difficult to use. Lucky for us, someone else thought so too and built a package called stringr
, that we introduce next.