2

How to get from

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

to

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

automatically?

Remi.b
  • 16,247
  • 25
  • 74
  • 153

1 Answers1

6

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

lapply(X = input, as.symbol)
Nicolás Velásquez
  • 4,818
  • 9
  • 21