fars_read: Function to read FARS file.

Description Usage Arguments Value Examples

Description

This function uses readr and dplyr packages. It takes a CSV file as an input filename parameter. If the file does not exist in the working directory, this function stops with an output message that the file does not exist. If the file exists, this function reads it into dataframe object. It suppresses messages and progress bar while reading the file.

Usage

1
fars_read(filename)

Arguments

filename

A filename as input string.

Value

File data is read into a dataframe object.

Examples

1
2
3
4
5
## Not run: 
fars_read("accident_2013.csv.bz2")
fars_read(filename="accident_2013.csv.bz2")

## End(Not run)

itjmt96/FARS documentation built on May 18, 2019, 5:52 a.m.