Learn R Programming

GISSB - Network analysis in R

GISSB is a package that contains GIS functions in R for use in Statistics Norway.

See the vignette for an introduction of how the functions can be used for network analysis in R: https://statisticsnorway.github.io/GISSB/articles/GISSB_vignette.html

Installation

You can install the development version of GISSB like so:

devtools::install_github("statisticsnorway/GISSB")

Requirements

Most of the functions in the GISSB package require that the Norwegian road network NVDB Ruteplan nettverksdatasett (National roads database - road network for routing) has been downloaded locally to your computer. The format of the file should be “FGDB 10.0”.

After the file has been downloaded it has to be read into R using the sf package:

2022-

vegnett <- sf::read_sf("vegnettRuteplan_FGDB_20221109.gdb", layer = "ruttger_link_geom")

turnrestrictions_geom <- sf::read_sf("vegnettRuteplan_FGDB_20221109.gdb", layer = "turnrestrictions_geom")

-2021

vegnett <- sf::read_sf("vegnettRuteplan_FGDB_20210528.gdb", layer = 'ERFKPS')

turnrestrictions_geom <- sf::read_sf("vegnettRuteplan_FGDB_20210528.gdb", layer = "ERFKPS_turns")

Copy Link

Version

Install

install.packages('GISSB')

Monthly Downloads

172

Version

1.1

License

MIT + file LICENSE

Maintainer

Sindre Mikael Haugen

Last Published

January 10th, 2023

Functions in GISSB (1.1)

shortest_path_cppRouting

Shortest path (cppRouting)
shortest_path_igraph

Shortest path (igraph)
vegnett_sampledata

Sample data (vegnett)
vegnett_to_R

Convert the Norwegian road network (NVDB Ruteplan nettverksdatasett) into network graphs in R
address_to_coords

Convert addresses to coordinates
graph_cppRouting_meters_sampledata

Sample data (graph_cppRouting_meters)
coords_to_node

Connect coordinates to the nearest nodes in the road network
coords_to_google

Convert coordinates to Google Maps
path_leaflet

Visualize the shortest path with Leaflet
edges_sampledata

Sample data (edges)
graph_cppRouting_minutes_sampledata

Sample data (graph_cppRouting_minutes)
graph_sampledata

Sample data (graph)
nodes_sampledata

Sample data (nodes)
%>%

Pipe operator