How to Convert String from Uppercase to Lowercase in R programming – tolower() method this is how coding


tolower() methodology in R programming is used to transform the uppercase letters of string to lowercase string.

Syntax: tolower(s)

Return: Returns the lowercase string.

Example 1:

gfg <- " coding tech "


answer <- tolower(gfg)




[1] "geeks for geeks"

Example 2:


gfg <- "The QuiCk bRown FoX jUmpS oVer tHe LaZy dOG"


reply <- tolower(gfg)




[1] "the quick brown fox jumps over the lazy dog"

Add a Comment

Your email address will not be published.