2

How to get from

input = c("a", "b", "c")

to

output = c(quote(a), quote(b), quote(c))

automatically?

Remi.b
  • 17,389
  • 28
  • 87
  • 168

1 Answers1

6

List apply as.symbol() to your input vector.

lapply(X = input, as.symbol)
Nicolás Velasquez
  • 5,623
  • 11
  • 22