Package Description

'Assignment' pachage make an analysis, ploting and reading Fatality Analysis Reporting System (FARS) data from the National Highway Traffic Safety link.

FARS is a nationwide census, providing the American public yearly data, regarding faatal injuries suffered in motor vehicle traffic crashes.

Load Packages

library(Assignment)
library(maps)

Included Data

Data files located in:

list.files(system.file('extdata'), package = 'Assignment')

Package Functions

Function 'make_filename'

This function returns file name and path to the data files:

make_filename(2015)

Function 'fars_read_years'

Function to add info to the next 'fars_summarize_years'

fars_read_years(2013)

Function 'fars_summarize_years'

This function summarizes yearly accidents data, by month and year

plot(fars_summarize_years(2015))
fars_summarize_years(c(2015, 2014))

Function 'fars_map_state'

Displays a map indicating the accidents locations

```r fars_map_state(49, 2014)



Uri0210/Assignment documentation built on April 23, 2020, 10:41 a.m.