R:如何从字符串向量转到引号/名称向量?

R: How to go from a vector of strings to a vector of quotes / names?

如何从

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

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

自动?

List 将 as.symbol() 应用于您的输入向量。

lapply(X = input, as.symbol)