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

Related Articles

Print Strings without Quotes in R Programming – noquote() Function

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

noquote() function in R Language is used to prints strings without quotes.

Syntax: noquote(x)

Parameters:
x: character vector

Example 1:




# R program to illustrate
# noquote function
  
# Getting letters without the help
# of noquote() function
letters
  
# Getting letters with the help
# of noquote() function
noquote(letters)

Output :

[1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s"
[20] "t" "u" "v" "w" "x" "y" "z"
[1] a b c d e f g h i j k l m n o p q r s t u v w x y z

Example 2:




# R program to illustrate
# noquote function
  
# Initializing a string
x <- "GFG"
  
# Getting the string without the help
# of noquote() function
x
  
# Getting the string with the help
# of noquote() function
noquote(x)

Output:

[1] "GFG"
[1] GFG
My Personal Notes arrow_drop_up
Last Updated : 01 Jun, 2020
Like Article
Save Article
Similar Reads