Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/statisticsnorway/gissb
https://github.com/statisticsnorway/gissb
cran r-package
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/statisticsnorway/gissb
- Owner: statisticsnorway
- License: other
- Created: 2022-08-03T13:43:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-27T11:22:49.000Z (25 days ago)
- Last Synced: 2024-11-27T11:34:57.468Z (25 days ago)
- Topics: cran, r-package
- Language: R
- Homepage: https://statisticsnorway.github.io/GISSB/
- Size: 4.48 MB
- Stars: 4
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
- Security: SECURITY.md
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")
```