Learn R Programming

dodgr (version 0.2.8)

dodgr_vertices: dodgr_vertices

Description

Extract vertices of graph, including spatial coordinates if included

Usage

dodgr_vertices(graph)

Arguments

graph

A flat table of graph edges. Must contain columns labelled from and to, or start and stop. May also contain similarly labelled columns of spatial coordinates (for example from_x) or stop_lon).

Value

A data.frame of vertices with unique numbers (n).

Examples

Run this code
# NOT RUN {
graph <- weight_streetnet (hampi)
v <- dodgr_vertices (graph)
# }

Run the code above in your browser using DataLab