I have two dataframes df1 and df2, if df1$date1 matches df2$date2 then print only those values from df2 as shown in the output.
df1:
date1
01-09-2018
01-10-2018
01-11-2018
01-12-2018
df2:
date2       value
01-05-2018      0
01-06-2018      0
01-07-2018      0
01-08-2018      0
01-09-2018      5
01-10-2018      2
01-11-2018      7
01-12-2018      3
output:
value
5
2
7
3
 
     
     
    