Learn R Programming

stats19 (version 2.0.1)

find_file_name: Find file names within stats19::file_names.

Description

Currently, there are 52 file names to download/read data from.

Usage

find_file_name(years = NULL, type = NULL)

Arguments

years

Year for which data are to be found

type

One of 'Accidents', 'Casualties', 'Vehicles'; defaults to 'Accidents', ignores case.

Examples

Run this code
find_file_name(2016)
find_file_name(2016, type = "accident")
find_file_name(1985, type = "accident")
find_file_name(type = "cas")
find_file_name(type = "accid")
find_file_name(2016:2017) # warning when multiple years requested

Run the code above in your browser using DataLab