This package provides two helper functions that provide summary and visualization on certain type of data files.

Data Files

In order to execute the functions properly, data files need to be placed in the current working directory with a naming convension of accident_yyyy.csv.bz2, where yyyy indicates a year. Sample data files can be found in the pacakge's extdata folder.

Example

# Get specific columns from each data file
fars_summarize_years(c(2013, 2014, 2015))

# Plot a map to show the location of accidents recorded in the data file
fars_map_state(4, 2013)


yzhang3142/fars documentation built on May 28, 2019, 7:38 a.m.