fars_read: Read in Fatality Analysis Reporting System data

Description Usage Arguments Details Value See Also

View source: R/fars_functions.R

Description

This function reads in the .csv file containing the data. It will check if the file exists in the current directory so set it correctly. Lastly, it will wrap the dataframe with tibble format.

Usage

1
fars_read(filename)

Arguments

filename

A character string gives the location to the .csv file or .csv.bz2 file

Details

This function will use the read_csv from readr package and tbl_df from dplyr package.

Value

This function returns a dataframe. As a side effect, it will also wrap the tibble format around the dataframe. \ @examples ## Not run: fars_read("./data/accident_2013.csv.bz2")

See Also

read_csv


vh42720/fars documentation built on May 29, 2019, 2:29 p.m.