fars_read: Load single Fatality Analysis Reporting System (FARS) file

Description Usage Arguments Value Examples

View source: R/fars_script.R

Description

This function reads a specified file as a tibble format (tbl_df class). The filename argument should be the path of the file to read.

Usage

1
fars_read(filename)

Arguments

filename

A file path where the function should look for the FARS data file. .gz, .bz2, .xz, or .zip files will be automatically uncompressed. Files starting with http://, https://, ftp://, or ftps:// will be automatically downloaded.

Value

tibble containing the specified FARS data. If the file is not found at the specified path the function will return an error. Issues reading in the CSV file also return errors.

Examples

1
2
fars_read("data.csv")
fars_read("accident_2013.csv.bz2")

j-new/FARSaccess documentation built on Feb. 18, 2018, 9:55 a.m.