Remove quotes from a character vector in R

as.name(char[1]) will work, although I’m not sure why you’d ever really want to do this — the quotes won’t get carried over in a paste for example:

> paste("I am counting to", char[1], char[2], char[3])
[1] "I am counting to one two three"

Leave a Comment