Skip to content

Coursera Building R packages course - week 4

Notifications You must be signed in to change notification settings

vsemichev/farsr

Repository files navigation

farsr

Travis-CI Build Status

farsr provides a set of functions to manipulate Fatality Analysis Reporting System (FARS) report files.

The package can be installed using

ghit::install_github("vsemichev/farsr")

List of functions

  • fars_read - read a FARS report file in CVS format
  • make_filename - generate FARS report file name for a given year
  • fars_read_years - read multiple FARS reports for a list of years
  • fars_summarize_years - produce a monthly summary report for a list of years
  • fars_map_state - draw a state map showing accident locations

Usage Examples

df <- fars_read("../data/accident_2013.csv.bz2")
nm <- make_filename(2017)
mon_year <- fars_read_years(c(2013,2014,2015))
smry <- fars_summarize_years(list(2013,2014))
fars_map_state(6,2015)

About

Coursera Building R packages course - week 4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages