knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The primary goal of stats19 is to enable access to the UK's geo-referenced database of road traffic casualties compiled by the police. See https://data.gov.uk/dataset/road-accidents-safety-data for further details. The package also aims to ease the analysis of such data to prioritise transport policies.
You can install stats19 from github with:
# install.packages("devtools") devtools::install_github("cyipt/stats19") library(stats19)
ac <- read_stats19_ac() ca <- read_stats19_ca() ve <- read_stats19_ve()
set.seed(2018) ac_sample1000 = ac[sample(nrow(ac), 1000), ]
class(ac_sample1000) plot(ac_sample1000$Longitude, ac_sample1000$Latitude) range(ac_sample1000$Date)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.