fars_map_state: Visualizes the data of the given state and year

Description Usage Arguments Value Note Examples

View source: R/fars_functions.R

Description

This function defines the file name with make_filename, and reads it with fars_read. Then, extract the rows when the state label is the given state number. It removes the data for the longitude more than 900 and the latitude more than 90 since they would be false data. Finally it visualize data on a plot.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

The numeric input for state number to filter data

year

The numeric input for year

Value

The plot of the filtered data

Note

It runs into a warning if there is no data for the defined

Examples

1
2
3
4
## Not run: 
fars_map_state(1,2013)

## End(Not run)

cemreyilmaz/tester documentation built on Dec. 19, 2021, 2:54 p.m.