Learn R Programming

sdsfun (version 0.7.0)

sf_coordinates: extract locations

Description

Extract locations of sf objects.

Usage

sf_coordinates(sfj)

Value

A matrix.

Arguments

sfj

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

Examples

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

Run the code above in your browser using DataLab