fars_map_state: Map of the accidents for a given stat in a year.

Description Usage Arguments Value Examples

View source: R/fars.R

Description

fars_map_state function first reads the given state.num variable, The map of the accident data for states where a LONGITUDE of greater than 900 and LATITUDE of greater than 90 but not for less than.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Numeric vector representing the value of STATE variable in the data.

year

An iteger of years fro 2013 to 2015 or corceabile to itegers.

Value

Returns a plot of map of points of accidents for the given state number in the year. If the stat number is not in the STAT variable, it returns NULL.Similarly, if the given stat number has no accident, LONGITUDE >900 and LATITUDE>90.

Examples

1
fars_map_state(20, 2013)

hahustat/farsdata documentation built on Sept. 29, 2020, 12:48 a.m.