fars_read: Read a datafile from the Fatality Analysis Reporting System

Description Usage Arguments Details Value Examples

View source: R/fars_functions_package0.1.R

Description

This function reads a csv datafile. Though designed speficially to read FARS data it can be used to read all kinds of csv files. It uses the readr::read_csv) function

Usage

1
fars_read(filename)

Arguments

filename

A character string with the filename. The file should be in csv-format. Zipped csv-files can also be read

Details

If the file doesn't exists it will throw an error.

Value

Returns a tibble with all the data from the csv file

Examples

1
2
3
4
5
## Not run: 
fars_read("accident_2015.csv.bz2"))
fars_read(make_filename(year=2015))

## End(Not run)

RedTent/farsfunctionsJT documentation built on May 29, 2019, 2:09 p.m.