dw <- joyn::merge(pf, nac,
+ by = c("country_code", "ceiling_year == year"),
+ yvars = c("pce", "gdp"),
+ join_type = "1:m")
Error: databse x is not uniquely
identified by `country_code` and `keyby1`
i Check the join type, the key variables or the consistency of
your data
change
keyby1
for real name