R dplyr filter does not work correctly with a soft sophisticated filter

dplyr filter does not work when I have a subset of the list in the validation value. It works when I assign a variable. See code below

 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 

I thought this used to work. Please help. Note that the column names are the same for both (y) in design.

I updated dplyr , tidyr , pipeR to the latest versions on tap just now (4 jan, 2017)

+6
source share
1 answer

@hadleywickham confirmed this is a known bug fixed in dev

Pls see his answer on Twitter: https://twitter.com/gunapemmaraju/status/816639470166544384

0
source

Source: https://habr.com/ru/post/1013743/


All Articles