fars_read: Read data from FARS

Description Usage Arguments Details Value Depends on Examples

View source: R/fars_functions.R

Description

This is a function that reads the annual FARS data file for concrete year properly specified by filename argument. Filename could be generated with make_filename function.

Usage

1
fars_read(filename)

Arguments

filename

character string

Details

The FARS data should be R in the working directory

Value

This function returns a data frame.

Depends on

  1. read_csv in the readr package.

  2. tbl_df in the dplyr package.

Examples

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

## End(Not run)

zpopovych/fars documentation built on May 20, 2019, 1:24 p.m.