fars_read: Read data from the "Fatality Analysis Reporting System...

Description Usage Arguments Value Examples

Description

Read data from the "Fatality Analysis Reporting System (FARS)" This is a function that reads in data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System. It checks if the the data file exists and if so reads in the csv data, (using the fars_read argument). If the file does not exists, it prints "file "filename" does not exist". The data is turned into a dataframe table. The function requires functions from the packages readr and dyplr.

Usage

1
fars_read(filename)

Arguments

filename

The name of the file that is read in.

Value

This function reads in csv data, if the specified filename exists in the working directory, and turns it into a dataframe table. If the filename does not exist, "file "filename" does not exists" is printed.

Examples

1
## Not run: fars_read("accident_2013.csv")

MvT19/Fars documentation built on June 18, 2019, 7:57 a.m.