fars_map_state: fars_map_state () this function that plots points where...

Description Usage Arguments Examples

View source: R/fars.R

Description

internal functions needed are make_filename() and fars_read() external packages needed are: dplyr,maps, graphics. functiion filter() from dplyr, map() from maps and points () from graphics are used.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

is state ID number (one interger from unique(data$STATE) if invalid state number used, the function will stop.

year

is a single year as the argument for make_filename() function.

Examples

1
2
## state_num <- 49 # Utah
## yr <- 2014

jianweilu/rhomewek documentation built on Aug. 8, 2020, 6:44 p.m.