How to write sf object as shapefile to ESRI file geodatabase with st_write?
How do I write an sf object as a shapefile to a file geodatabase using st_write?
I don't quite understand the 'dsn', 'layer', and 'driver' arguments of st_write in relation to file geodatabases.
For example, I've tried both of these and no luck
st_write(sf.object, dsn = "filepath/FileGeoDatabase.gbd",layer="name of output layer", driver="OpenFileGDB")
st_write(sf.object, dsn = "filepath/FileGeoDatabase.gbd",layer="name of output layer", driver="ESRI Shapefile")