Sorry I am new to R and would greatly appreciate some help with this. I am trying to merge the following two dataframes(labourproductivity and Depressiondframe) based on Time:
Time LabourProductivity
1 2004 Q1 96.6
2 Q2 96.9
3 Q3 96.9
4 Q4 97.1
5 2005 Q1 97.6
6 Q2 99.0
and
Time DepressionCount
1 2004 875
2 2004.25 820
3 2004.5 785
4 2004.75 857
5 2005 844
6 2005.25 841
Since they both have different values for time I do not know how to merge them. Ideally it would look like:
Time DepressionCount LabourProductivity
1 2004 875 96.6
2 2004 820 96.9
3 2004 785 96.9
4 2004 857 97.1
5 2005 844 97.6
6 2005 841 99.0