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)
source share