ox_basic_stats: Basic street-network statistics

View source: R/metrics.R

ox_basic_statsR Documentation

Basic street-network statistics

Description

Summary measures for an osm_graph: node and edge counts, total and mean edge length, mean out-degree, self-loop count and average circuity. Computation is performed by the bundled Rust core.

Usage

ox_basic_stats(g, weight = "length")

Arguments

g

An osm_graph.

weight

Edge column used as length/weight. Default "length".

Value

A one-row tibble of statistics.

Examples

g <- example_osm_graph()
ox_basic_stats(g)

osmnxr documentation built on Oct. 20, 2026, 1:07 a.m.