I am fairly new to R but really have tried to find an answer to my problem, but was unsuccessful.
I have two data frames "Brexit_final" and "Brexit_Google_Trends". Both data frames have a "Date" column BUT! the Brexit_Final frame has less dates than the other one. I want to make a new set of data in which only the rows are kept where both frames have the date.
And in the process I also want to delete a lot of the columns.
Brexit_Final
Date Remain Leave Undecided Total_Difference
2016-06-18 42 44 13 7.5
2016-06-20 47.25 46 5.25 15
2016-06-23 55 45 0 14
Brexit_Google_Trends
Date EU Referendum Brexit Difference
2016-06-18 44 100 65 22
2016-06-19 23 100 62 55
2016-06-20 28 40 36 24
2016-06-21 37 55 43 36
2016-06-22 7 10 55 44
2016-06-23 67 100 62 103
Dream_Frame
Date Total_Difference Difference
2016-06-18 7.5 22
2016-06-20 15 24
2016-06-23 14 103