Generate sf objects (3)

We can also start from scratch:

  • create the geometries from coordinate vectors or matrices with st_point(), st_linestring(), st_polygon(), st_multipolygon() etc.
  • combine the geometries into an sfc object with st_sfc(), which also handles the CRS
  • create an attribute dataframe
  • combine data frame and the geometry column with st_sf()