fars_read: Read in FARS data

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

A helper (not exported) function used by fars_read_years and fars_map_state functions. It takes a file name and reads in the data storing it in a data frame. If the file does not exist the function throws an error.

Usage

1
fars_read(filename)

Arguments

filename

A character string giving the name of the file from to import the data from

Value

This function returns a data frame containing the fars data for a given year.

Examples

1
2
3
4
## Not run: 
fars_read("accident_2014.csv.bz2")

## End(Not run)

vbeakovic/fars documentation built on May 14, 2019, 9:39 a.m.