View source: R/sfc_point_to_matrix.R
sfc_point_to_matrix | R Documentation |
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_point_to_matrix(x)
x |
An |
See https://github.com/dcooley/sfheaders/issues/52 for details
Dave Cooley
sfc_point_to_matrix(od_data_centroids$geometry[1:6])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.