Learn R Programming

stats19 (version 3.1.0)

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 'collisions', 'casualty' or 'vehicles' ignores case.

Examples

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

Run the code above in your browser using DataLab