I m trying to merge 2 files with postal code in R.
One file has financial info by state and postal codes (file a
) and the other file has postal code, country, activities, and dates(file b
). Some of the postal code in the first file a
are not present in the second file b
.
So I m trying to merge all the postal codes of file b
with that of file a
without losing any information on my file a
.
My code is:
merge(a, b, by="posta code", all.x=TRUE)