fars_read: This function, named "fars_read", reads a file and save the...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function, named "fars_read", reads a file and save the data in a variable called "data".

Usage

1
fars_read(filename)

Arguments

filename

A single string with the name of the file. Only years 2013, 2014 and 2015 are available. Trying loading a different year will result in a message saying the file does not exist.

Value

The function returns a data frame containing the data of the file. The output file is named "data".

Examples

1
2
## Not run: dirdata <- system.file("extdata", "accident_2013.csv.bz2", package = "FARSinR2")
## Not run: fars_read(dirdata)

raponxi/FARSinR2 documentation built on May 26, 2019, 11:08 p.m.