I have two data frames of this form:
A
code population index
1 400 5
...
B
code rate index
1 50 5
...
I want to merge B in A by code, but I want only to merge rate. Expected output:
C
code population rate index
1 400 50 5
...
How to do that in R?