Skip to content

unimi-dse/10e974e5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ID: 10e974e5

Road Accidents Analysis

This package allows users to make an analysis of the road accidents in the Lombardy region from 2010 to 2016. It is possible to calculate the mean for injured and dead people in a specific district or in a specific year.

Installation

# first install the R package "devtools" if not installed
devtools::install_github('unimi-dse/10e974e5')

Usage

# load the package
require(roadaccidents)

Dataset

The project provides a dataset which is imported from the Regione Lombardia website (Open Data), https://dati.lombardia.it.

The dataset is compsed by 490 observations and 8 variables:

  • anno incidente: year of the accidents
  • codice istat provincia: identification code for the district
  • provincia: district
  • codice istat comune: identification code for the city
  • comune: city
  • numero incidenti: number of accidents
  • totale morti: total number of dead people
  • totale feriti: total number of injured people

Documentation

It is possible to see the documentation of the developed functions using:

?getDataset()
?year_dead()
?year_injured()
?district_dead()
?district_injured()
?roadaccidents()

Shiny App

To run the Shiny App use the function:

# Run Shiny App
roadaccidents()

Technologies:

  • R language
  • Shiny App

Author

Antonella D'Amico

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages