fars_map_state: 'fars_map_state' filters the data by a certain US state and...

Description Usage Arguments Value Source See Also Examples

View source: R/fars_functions.R

Description

fars_map_state filters the data by a certain US state and year and plots a map of accidents in that state. the files need to be in the working directory.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

a number of a state in US as integer

year

a year as integer/character

Value

a map with locations of accidents for the provided state number and year

Source

Coursera Mastering Software Development in R - Johns Hopkins University

See Also

make_filename fars_read_years fars_summarize_years fars_read

Examples

1
2
3
4
5
6
## Not run: 
   fars_map_state(45, 2015)
   fars_map_state(2016) #example of error
   fars_map_state(60, 2016) #example of error

## End(Not run)

Polkas/farsfuns documentation built on Nov. 18, 2017, 8:52 a.m.