Convert sf objects to normal data.frames with longitude and latitude colu,ns

unsf(x, coord_names = c("lon", "lat"))

Arguments

x

an sf::sf object

coord_names

character vector of length 2. The names of the new that should contain the coordinates from the geometry column of x.

Value

a data.frame