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:
# 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
Please Login to comment...