Convert String to Single Quote Text in R Programming – sQuote() Function Last Updated : 01 Jun, 2020 Improve Improve Like Article Like Save Share Report sQuote() function in R Language is used to convert the given string or character vector into single quote text. Syntax: sQuote(x) Parameters: x: specified string, character vector Example 1: # R program to illustrate # sQuote function # Initializing a string x <- "GeeksforGeeks" # Calling the sQuote() function sQuote(x) Output : [1] "‘GeeksforGeeks’" Example 2: # R program to illustrate # sQuote function # Initializing a string x <- "2020-05-29 19:18:05" # Calling the sQuote() function sQuote(x) Output: [1] "‘2020-05-29 19:18:05’" Like Article Suggest improvement Previous Convert a String to an Expression in R Programming - parse() Function Next Check if Elements of a Vector are non-empty Strings in R Programming - nzchar() Function Share your thoughts in the comments Add Your Comment Please Login to comment...