sfc_point_to_matrix {od}R Documentation

Extract coordinates from sfc objects with point geometry

Description

This functions takes point geometries with class sfc from the sf package and returns a matrix representing x and y (typically lon/lat) coordinates.

Usage

sfc_point_to_matrix(x)

Arguments

x

An sfc object

Details

See https://github.com/dcooley/sfheaders/issues/52 for details

Author(s)

Dave Cooley

Examples

sfc_point_to_matrix(od_data_centroids$geometry[1:6])

[Package od version 0.4.4 Index]