Doubt about the function joinCountryData2Map

Are you talking about the joinCountryData2Map() function from the rworldmap package?
If so, this function requeries as input a dataframe not a table and the nameJoinColumn parameter should be the name of the column containing country referencing not the coefficient.

It would be easier to help you if you could ask this with a minimal REPRoducible EXample (reprex). A reprex makes it much easier for others to understand your issue and figure out how to help.

If you've never heard of a reprex before, you might want to start by reading this FAQ: