I have two data frames(df and df1). df1 is subset of df. I want to get a data frame which is complement of df1 in df, i.e. return rows of the first data set which are not ma
Try the %in% command and reverse it with !
%in%
!
df[!df$heads %in% df1$heads,]