I am a noob in R, and I been trying to compare two data frames which is derived using Text mining and it has two columns, one with words and other with count. Assume they are dataframe1 and dataframe2.
I am trying to find out how to write the code which will select those words are present in dataframe2 but not present in dataframe1.
If we had to use it in excel, we would just use word as reference in dataframe2 and VLOOKUP the same list of words from dataframe1 and select the #N/A which are there and then sort the #N/A based on the highest count.
Below is the picture to explain in detail: dataframe1
dataframe2:
As you can see the word C & F are in dataframe1 and also in dataframe2. So we have to exclude this and it should look like this.
Expected Output:
Can someone help me? I been trying for hours now. Thanks in advance.