Read in STATS19 road safety data from .csv files downloaded.
read_casualties(year = NULL, filename = "", data_dir = tempdir(), format = TRUE)
Single year for which data are to be read
Character string of the filename of the .csv to read, if this is given, type and years determine whether there is a target to read, otherwise disk scan would be needed.
Where sets of downloaded data would be found.
Switch to return raw read from file, default is
The function returns a data frame, in which each record is a reported casualty in the STATS19 dataset.
dl_stats19(year = 2017, type = "casualties")#>#>#>#>casualties = read_casualties(year = 2017)