Remove Quotes from Character String in R Console (3 Examples)
In this R tutorial you’ll learn how to get rid of quotes when showing character strings.
Creating Example Data
x <- "LALALALALA" # Example character string x # Print character string # "LALALALALA" |
x <- "LALALALALA" # Example character string x # Print character string # "LALALALALA"
Example 1: Displaying Character String without Quotes – noquote() Function
noquote(x) # Using noquote function # LALALALALA |
noquote(x) # Using noquote function # LALALALALA
Example 2: Displaying Character String without Quotes – quote Argument of print() Function
print(x, quote = FALSE) # print function & quote argument # LALALALALA |
print(x, quote = FALSE) # print function & quote argument # LALALALALA
Example 3: Displaying Character String without Quotes – cat() Function
cat(x) # Using cat function # LALALALALA |
cat(x) # Using cat function # LALALALALA
Related Articles & Further Resources
Have a look at the following tutorials. They explain similar topics as this page: