powered by
This functions takes point geometries with class sfc from the sf package and returns a matrix representing x and y (typically lon/lat) coordinates.
sfc
sf
sfc_point_to_matrix(x)
An sfc object
Dave Cooley
See https://github.com/dcooley/sfheaders/issues/52 for details
sfc_point_to_matrix(od_data_centroids$geometry[1:6])
Run the code above in your browser using DataLab