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

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

Syntax: noquote(x)

Parameters:
x: character vector

Example 1:

filter_none

edit
close

play_arrow

link
brightness_4
code

# 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)

chevron_right


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:

filter_none

edit
close

play_arrow

link
brightness_4
code

# 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)

chevron_right


Output:

[1] "GFG"
[1] GFG
My Personal Notes arrow_drop_up

Recommended Posts:


Check out this Author's contributed articles.

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.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.