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) |
chevron_right
filter_none
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) |
chevron_right
filter_none
Output:
[1] "‘2020-05-29 19:18:05’"
Recommended Posts:
- Convert String to Double Quote Text in R Programming - dQuote() Function
- Evaluate and Quote an Expression in R Programming - bquote() Function
- Adding Text to Plots in R programming - text() and mtext () Function
- Compute Single Order Integral value of a Function in R Programming - integrate() Function
- Convert type of data object in R Programming - type.convert() Function
- Single Layered Neural Networks in R Programming
- Convert string from lowercase to uppercase in R programming - toupper() function
- Convert String to Integer in R Programming - strtoi() Function
- Convert a String into Date Format in R Programming - as.Date() Function
- Convert an Object to a String in R Programming - toString() Function
- Convert a String to an Expression in R Programming - parse() Function
- Convert an Expression to a String in R Programming - deparse() Function
- Reading contents of a Text File in R Programming - read.table() Function
- Convert String from Uppercase to Lowercase in R programming - tolower() method
- Convert Character value to ASCII value in R Programming - charToRaw() Function
- Convert Degree value to Radian value in R Programming - deg2rad() Function
- Convert Radian value to Degree value in R Programming - rad2deg() Function
- Convert First letter of every word to Uppercase in R Programming - str_to_title() Function
- Convert a Vector into Factor in R Programming - as.factor() Function
- Convert an Unordered Factor to an Ordered Factor in R Programming - as.ordered() Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

