I am trying to create panel data set by joining Table 1 and Table 2
Table 1
Table 2
The output I would like to receive is that I will have 4 columns:
Powiat | Rok | Liczba bezrobotnych | Srednie wynagrodzenie
When I try to join these two tables with this line of code:
newtable <- left_join(bezrobotni, srednie, by = "Powiat",relationship = "many-to-many")
I receive such output:
I tried with different joins but the result is always this same. Do you know how to make it right?



by = c("Powiat", "Rok")full_join().