I have a data frame, say df1, that looks something like this:
ID
1 ABC
2 ABD
3 ABE
4 ABF
5 ABG
.
.
and I want to join a data frame to df1 that has less rows than df1, like this one:
ID Value1 Value 2
1 ABC 5 6
2 ABD 1 2
3 ABG 4 4
.
.
so that the final product looks like this:
ID Value1 Value 2
1 ABC 5 6
2 ABD 1 2
3 ABE NA NA
4 ABF NA NA
5 ABG 4 4
.
.
How can I do about doing this? Thanks in advance.