read_network: Load MATSim network into memory

View source: R/network.R

read_networkR Documentation

Load MATSim network into memory

Description

Loads a MATSim XML network file, creating a nodes tibble and a links tibble. Any node and link attribute records in the network are stored as additional columns in the respective node and link tibbles.

Usage

read_network(filename)

Arguments

filename

File to load. Can be XML or gzipped XML

Details

The links table is automatically joined with the nodes table so that node x/y coordinates (and any other node attributes) are available in the links table without additional processing.

Value

"nodes" and "links" tibbles in a list object.


matsim-vsp/matsim-r documentation built on Feb. 3, 2025, 6:48 p.m.