I have been using merge() to merge my geojson file with csv data in R. My codes are as follows: map@data