Skip to content

statisticsnorway/GISSB

Repository files navigation

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 GISSB from CRAN like so:

install.packages("GISSB")

If you want to install the development version of GISSB from Github, use this code:

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")

Releases

No releases published

Packages

No packages published

Languages