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

Example 1: Displaying Character String without Quotes – noquote() Function

noquote(x)                     # Using noquote function

Example 2: Displaying Character String without Quotes – quote Argument of print() Function

print(x, quote = FALSE)        # print function & quote argument

Example 3: Displaying Character String without Quotes – cat() Function

cat(x)                         # Using cat function

Related Articles & Further Resources

Have a look at the following tutorials. They explain similar topics as this page:

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed