Project for Spatial Analytics, Cultural Data Science 2021
By: Johanne Brandhøj Würtz
Introduction
This repository contains my exam projec for my Spatial Analytics class in Cultural Data Science. My project deals with the connection between traffic accidents in relation to spatially clustered data points.
Software Framework
The code for this project is written on my MacBook macOS, version 10.15.7. I installed the desktop version of R (4.1.0) and RStudio (1.4.1106). The project uses the following packages: tidyverse, sf, rgdal, leaflet, spatstat, maptools, sp and raster. See the Session Info chunk in the end of the script (Traffic_accidents.Rmd) for more details about the individual packages and versions.
The data containing information about the traffic accidents, the locations and which type of accident it is, are in a mapinfo format. This means that the data contains a number of files (shp, qpj, cpg etc.), all of which must be present before the data works optimally.
Data License
This project has a MIT License, for more information see LICENSE file.
This project uses data from:
GADM:
- The data are freely available for academic use and other non-commercial use. Using the data to create maps for academic publishing is allowed.
- SpatialPolygonsDataFrame, metadata for variable names:https://gadm.org/metadata.html, generated by GADM, 2018, source: https://gadm.org
Opendata:
- The license states that there is a free, non-exclusive, and otherwise unlimited right to use the data that can be copied, dis-tributed and published, modified and combined with other material and used commercially and non-commercially.
- SpatialPointsDataFrame, metadata for variable names:https://www.opendata.dk/vejdirektoratet/taellinger-nogletal-mastra#resource-feltbeskrivelse.xlsx, generated by Vejdirektora-tet, 2021, source:https://www.opendata.dk/vejdirektoratet/taellinger-nogletal-mastra