R dplyr过滤器无法正常使用温和复杂的过滤器

gun*_*una 6 r dplyr

dplyr当我在检查值中有列表子集时,过滤器不起作用.当我分配给变量时,Samething可以工作.见下面的代码

df1<-data.frame(x=1:26, y=letters, stringsAsFactors = F)
templist<-list(alpha=df1)
res<-df1 %>% filter(y %in% templist$alpha$y)
nrow(res)
[1] 0
tempLetters <- templist$alpha$y
res<-df1 %>% filter(y %in% tempLetters)
nrow(res)
[1] 26
Run Code Online (Sandbox Code Playgroud)

我以为这曾经比较早.请帮忙.请注意,两个(y)中的列名称相同.

我已经更新dplyr,tidyr,pipeR对CRAN刚才的最新版本(2017年1月4日)

gun*_*una 1

@hadleywickham 已确认这是开发中修复的已知错误

请在 Twitter 上查看他的回复: https://twitter.com/gunapemmaraju/status/816639470166544384