Create a buffer around an sf object + merge the resulting polygons using st_union

unionShpBuffer(shp, dist)

Arguments

shp,

sf object

dist,

distance (supposed to be in some valid unit - e.g. degreees or meters)

Value

shpUnionedBuff, sf object with potentially less features than shp