fars_map_state: This function takes a numerical vector of the state and year...

Description Usage Arguments Value Note See Also Examples

View source: R/fars_functions.R

Description

This function takes a numerical vector of the state and year when the accident occurred and shows the location where traffic accidents occurred Data should be in .csv.bz2

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

A numerical vector of a particular state in the USA.

year

A numerical vector of a year.

Value

A plot of the map of the state with points where of the accidents occurred

Note

If state number does not exist in file will generate an error If no records for state exist will write message and return an a invisible(NULL)

See Also

make_filename

fars_read

Examples

1
2
3
4
5
## Not run: 
fars_map_state(4 , 2014)
fars_map_state('8' , '2015')

## End(Not run)

lorenzo-arturo/farspackage documentation built on June 13, 2020, 12:24 a.m.