Q:

filter from dplyr: where two string columns need to be compared along with numeric

I need to apply the filter condition on String columns along with numeric columns. This way it is not giving the expected output. If anyone has encountered the same problem, please help 
Num1<-c(1,2,3,4,5)
Num2<-c(1,2,2,1,1)
String1<-c("AA","BB","CC","DD","EE")
String2<-c("AA","BB","CC","DD","FF")
data<-c(Num1,Num2,String1,String2)
df<-data%>%
filter((Num2<Num1) & (String1==String2))

A:

We need to create a data.frame instead of a vector
data<- data.frame(Num1,Num2,String1,String2, stringsAsFactors=FALSE)

and then the OP would work
data %>%
    filter(Num2 < Num1 & String1 == String2)
#   Num1 Num2 String1 String2
#1    3    2      CC      CC
#2    4    1      DD      DD

