fars_read: Import fars file

Description Usage Arguments Value See Also Examples

View source: R/fars_read.R

Description

fars_read import the fars file with the directory as argument.

Usage

1
fars_read(filename)

Arguments

filename

The directory to the file to be imported. Data dictionary can be obtained as:

  • system.file("extdata", "accident_2013.csv.bz2", package = "FARS")

  • system.file("extdata", "accident_2014.csv.bz2", package = "FARS")

  • system.file("extdata", "accident_2015.csv.bz2", package = "FARS")

Value

A data frame with data stored from the csv file, or an error if the file does not exist.

See Also

make_filename

Examples

1
dat <- fars_read("accident_2013.csv.bz2")

ChaoLiu-gk/FARS documentation built on Jan. 6, 2020, 12:43 a.m.