Convert String to Double Quote Text in R Programming – dQuote() Function
Last Updated :
01 Jun, 2020
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:
x < - "GeeksforGeeks"
dQuote(x)
|
Output :
[1] "“GeeksforGeeks Geeks”"
Example 2:
x < - "2020-05-29 19:18:05"
dQuote(x)
|
Output:
[1] "“2020-05-29 19:18:05”"
Share your thoughts in the comments
Please Login to comment...