Convert String from Uppercase to Lowercase in R programming - tolower() method Last Updated : 12 Jul, 2025 Summarize Comments Improve Suggest changes Share Like Article Like Report 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: Python3 # R program to convert string # from uppercase to lowercase gfg <- "GeEks FoR GeeKs" # Using tolower() method answer <- tolower(gfg) print(answer) Output: [1] "geeks for geeks" Example 2: Python3 # R program to convert string # from uppercase to lowercase # Given String gfg <- "The QuiCk bRown FoX jUmpS oVer tHe LaZy dOG" # Using tolower() method answer <- tolower(gfg) print(answer) Output: [1] "the quick brown fox jumps over the lazy dog" Comment More infoAdvertise with us Next Article Convert string from lowercase to uppercase in R programming - toupper() function J jitender_1998 Follow Improve Article Tags : R Language Similar Reads Convert string from lowercase to uppercase in R programming - toupper() function toupper() method in R programming is used to convert the lowercase string to uppercase string. Syntax: toupper(s) Return: Returns the uppercase string. Example 1: Python3 # R program to convert string # from lowercase to uppercase # Given String gfg <- "Geeks For Geeks" # Using toupper( 1 min read Convert First letter of every word to Uppercase in R Programming - str_to_title() Function str_to_title() Function in R Language is used to convert the first letter of every word of a string to Uppercase and the rest of the letters are converted to lower case. Note: This function uses 'stringr' library. Syntax: str_to_title(string) Parameter: string: string to be converted Example 1: Pyth 1 min read Case conversion of a String in R Language - toupper(), tolower(), casefold() and cartr() Function In this article, we are going to see case conversion of a string in R Programming Language. R - toupper() toupper() function in R Language is used to convert the lowercase letters to uppercase. Syntax: toupper(x)Â Parameters:Â x: character vector Example:Â R # R program to illustrate # uppercase of 2 min read Replace the First Match of a Pattern from a String in R Programming â sub() Function sub function in R Language is used to replace the first match of a pattern in a string. If there is a vector of string elements, then it will replace the first match of the pattern from all elements. Syntax: sub(pattern, replacement, string, ignore.case=TRUE/FALSE) Parameters: pattern: string to be 1 min read Extracting Substrings from a Character Vector in R Programming - substring() Function substring() function in R Programming Language is used to extract substrings in a character vector. You can easily extract the required substring or character from the given string. Syntax: substring(text, first, last) Parameters:Â text: character vectorfirst: integer, the first element to be replac 1 min read Convert a Vector into Factor in R Programming - as.factor() Function as.factor() function in R Programming Language is used to convert the passed object(usually Vector) into a Factor. Syntax: as.factor(object) Parameters:Â Object: Vector to be convertedas.factor() Function in R ExampleExample 1: Convert a Factor in RR # Creating a vector x<-c("female", "male", "ma 1 min read Like