noquote()
La función en R Language se usa para imprimir strings sin comillas.
Sintaxis: noquote(x)
Parámetros:
x: vector de caracteres
Ejemplo 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)
Producción :
[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
Ejemplo 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)
Producción:
[1] "GFG" [1] GFG
Publicación traducida automáticamente
Artículo escrito por Kanchan_Ray y traducido por Barcelona Geeks. The original can be accessed here. Licence: CCBY-SA