fars_read: Read in FARS data

Description Usage Arguments Value Examples

Description

The fars_read() function uses the read_csv() function from the readr package to read in a data set and converts it to the tdl_df format known from the dplyr and tibble packages. The function has been developed to read in FARS data but works with every data format that is accepted by readr::read_csv(). It gives a warning if the specified file name does not exist.

Usage

1
fars_read(filename)

Arguments

filename

A character string with the name of the file you want to read in

Value

This function returns the data from the input file in tbl_df class (see R documentation for the tibble package).

Examples

1
## Not run: fars_read("accident_2013.csv.bz2")

tdo15/fars documentation built on May 3, 2019, 10:45 p.m.