Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Convert String to Double Quote Text in R Programming – dQuote() Function

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

dQuote() function in R Language is used to convert the given string or character vector into double quote text.

Syntax: dQuote(x)

Parameters:
x: specified string, character vector

Example 1:




# R program to illustrate
# dQuote function
  
# Initializing a string
x <- "GeeksforGeeks"
  
# Calling the dQuote() function
dQuote(x)

Output :

[1] "“GeeksforGeeks Geeks”"

Example 2:




# R program to illustrate
# dQuote function
  
# Initializing a string
x <- "2020-05-29 19:18:05"
  
# Calling the dQuote() function
dQuote(x)

Output:

[1] "“2020-05-29 19:18:05”"
My Personal Notes arrow_drop_up
Last Updated : 01 Jun, 2020
Like Article
Save Article
Similar Reads