fars_map_state: fars_map_state Accepts a state number and year from the...

Description Usage Arguments Value Examples

View source: R/fars_map_state.R

Description

fars_map_state Accepts a state number and year from the user/calling program Makes the appropriate filename using the year and the make_filename function gets a data frame from fars_read()

Error checks to make sure the state number exists If so, uses maps and graphics to create plots based on latitude and longitude from the data file Uses make_filename(year) and fars_read(filename)

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Number of a state

year

The year in question

Value

A plot or set of plots based on latitude and longitude from the data file

Examples

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

## End(Not run)

AyeshaPerera/Far documentation built on July 29, 2020, 7:34 a.m.