fars_read: Read a FARS csv file into a tibble

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

fars_read() accepts a filename, checks it exists, then calls readr::read_csv and dplyr::tbl_df with default arguments to create a tibble.

Usage

1
fars_read(filename)

Arguments

filename

Character string containing filename to read. Note this can be provided by fars::make_filename.

Value

Returns a tibble data frame, or an error if the file does not exist/cannot be read.

Examples

1
df1 <- fars_read(make_filename(2013))

rwpalin/fars documentation built on Nov. 5, 2019, 5:10 a.m.