【发布时间】:2018-04-06 12:53:09
【问题描述】:
我一直在 dplyr 中使用 quosures:
library(dplyr)
library(ggplot2)
thing <- quo(clarity)
diamonds %>% select(!!thing)
print(paste("looking at", thing))
[1]“看着~”“看着清晰”
我很想打印出放入quo的字符串值,但只能得到以下内容:
print(thing)
~清晰
print(thing[2])
清晰度()
substr(thing[2],1, nchar(thing[2]))
[1] “清晰度”
有没有更简单的方法来“取消引用”quo()?
【问题讨论】: