fars_read: Read a FARS data CSV file

Description Usage Arguments Value Note References Examples

View source: R/fars_functions.R

Description

This functions reads a csv file that is expected to contain data from US National Highway Traffic Safety Administration's Fatality Analysis Reporting System.

Usage

1
fars_read(filename)

Arguments

filename

a charcter string that describes the path and name of the csv file including FARS data. See also make_filename

Value

This function returns a tibble containing the FARS data

Note

The function uses read_csv to read the data. The validity of the data is not checked. Missing file will cause an error.

References

Fatality Analysis Reporting System

Examples

1
2
fars_file_name <- make_filename(2014)
## Not run: dat <- fars_read(fars_file_name)

jhimberg/r_packages_excercise documentation built on April 9, 2020, 11:10 p.m.