Problems with writing dataframe to ESRI shapefile

Curiouser and curiouser!

What type of geometry is your data? Points or polygons?

If it is points (as I expect) you will need to pipe the result of the read.csv() function to sf::st_as_sf() function - consider this example: Issues with writing a dataframe to a shapefile (no need for the sf::st_transform(); I was just showing off...)