read_stats19_ac: Import and format UK 'Stats19' road traffic casualty data

Description Usage Arguments Details Examples

Description

Import and format UK 'Stats19' road traffic casualty data

Usage

1
read_stats19_ac(data_dir = tempdir(), filename = "Accidents0514.csv")

Arguments

data_dir

Character string representing where the data is stored. If empty, R will attempt to download and unzip the data for you.

filename

Character string of the filename of the .csv to read in - default values are those downloaded from the UK Department for Transport (DfT).

Details

This is a wrapper function to access and load stats 19 data in a user-friendly way. The function returns a data frame, in which each record is a reported incident in the stats19 dataset.

Ensure you have a fast internet connection and at least 100 Mb space.

Examples

1
2
3
4
## Not run: 
ac <- read_stats19_ac()

## End(Not run)

cyipt/stats19 documentation built on May 14, 2019, 8:41 a.m.