Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/statisticsnorway/gissb


https://github.com/statisticsnorway/gissb

cran r-package

Last synced: 6 days ago
JSON representation

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

# GISSB - Network analysis in R

`GISSB` is a package that contains GIS (Geographic Information System) 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:

``` r
install.packages("GISSB")
```

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

``` r
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)](https://kartkatalog.geonorge.no/metadata/nvdb-ruteplan-nettverksdatasett/8d0f9066-34f9-4423-be12-8e8523089313) 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-

``` r
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

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

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