fars_read: Read Fatality Analysis Reporting System's data

Description Usage Arguments Details Value Note Examples

View source: R/assignment_w2.R

Description

Reads a csv file, checking if the file truly exists or not

Usage

1
fars_read(filename)

Arguments

filename

Name of the file to be read.

Details

If it doesn't exist, an error will be thrown

Value

Either a tibble dataframe with the data or a error message indicating that the file doesn't exist.

Note

fars_read depends on read_csv and tbl_df from the readr and dplyr packages respectively.

Examples

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

AleOlguin12/FARS documentation built on July 11, 2020, 1:03 p.m.