7  Simple Features (sf)

R’s new default way of handling spatial data seems to be simple features (sf).

Use library(sf) to read, write and manipulate simple features.

Other forms of data such as shapefiles (Chapter 8) often need to be read as simple features.

Mapping routines such as ggplot (Chapter 12) will also often want data to be in the form of simple features.