fars_read: FARS Data Input.

Description Usage Arguments Details Value Depends on Examples

View source: R/fars_functions.R

Description

Reads a FARS data file in R as data frame table.

Usage

1
fars_read(filename)

Arguments

filename

The name of the file which the data are to be read from.

Details

This function is the principal means of reading FARS tabular data into R.

The file must be in a CSV format. If the file, specified through filename, does not exist the execution is stopped and an error is returned. Otherwise the content of the file is read. Please note that while reading the file all warnings are suppressed.

Value

A data frame table (see tbl_df in the dplyr package).

Depends on

  1. read_csv in the readr package.

  2. tbl_df in the dplyr package.

Examples

1
2
3
4
## Not run: 
fars_read("/tmp/data/fars/accident_2013.csv.bz2")

## End(Not run)

pparacch/fars documentation built on May 6, 2019, 6:01 p.m.