tolower()
method in R programming is used to convert the uppercase letters of string to lowercase string.
Syntax: tolower(s)
Return: Returns the lowercase string.
Example 1:
gfg < - "GeEks FoR GeeKs"
answer < - tolower(gfg)
print (answer)
|
Output:
[1] "geeks for geeks"
Example 2:
gfg < - "The QuiCk bRown FoX jUmpS oVer tHe LaZy dOG"
answer < - tolower(gfg)
print (answer)
|
Output:
[1] "the quick brown fox jumps over the lazy dog"
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
10 May, 2020
Like Article
Save Article