fars_read: The following functions read, summarize and plot data from...

View source: R/fars_functions.R

fars_readR Documentation

The following functions read, summarize and plot data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS) Fatality Analysis Reporting System (FARS).

Description

Data reading by file name

Usage

fars_read(filename)

Arguments

filename

the name of the file containing the data to be read.

Details

This function reads a FARS file and creates a data frame table. The file name is generated by the function make_filename.

Value

This function returns a data frame table when the file exists. An error is given if the file doesn't exist. The file has to be located in the present working directory

Examples

## Not run: 
  my_data <- fars_read("accident_2013.csv.bz2")

## End(Not run)


ykv001/FARSpckgwk4 documentation built on Jan. 20, 2025, 10:38 p.m.