sf_coordinates: extract locations

sf_coordinatesR Documentation

extract locations

Description

Extract locations of sf objects.

Usage

sf_coordinates(sfj)

Arguments

sfj

An sf object or can be converted to sf by sf::st_as_sf().

Value

A matrix.

Examples

pts = sf::read_sf(system.file('extdata/pts.gpkg',package = 'sdsfun'))
sf_coordinates(pts)


sdsfun documentation built on April 3, 2025, 8:39 p.m.