fars_map_state: Draws a geographical map for the accidental injuries for the...

Description Usage Arguments Details Value Examples

Description

This function reads the input file for the year provided by the user and returns a geographical map depicting the fatal injuries suffered in motor vehicle traffic crashes.

Usage

1
fars_map_state(state.num, year)

Arguments

state

Number for each state. For more information , Fatality Analysis Reporting System.

...

Arguments passed on to make_filename

year

The year for which the information regarding fatal injuries is required. Valid value for <year> will be those year for which user has "Accident_<year>.csv" file present in the local directory.

Details

this function will throw an error if the year provided by user is not a valid year. For the definition on valid year look at parameter 'year'.

Value

This function returns a geographical map for the given state(s) with each dot as an obsevation of the accidental injuries.

Examples

1
2

sonam-sharma/pushrepo documentation built on May 30, 2019, 4:10 p.m.