7  Simple Features (sf)

R’s new preferred 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 14) will also often want data to be in the form of simple features.