fars_map_state: Title fars_map_state

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

Receive a state number and one year. make the appropriate file name using the year and the make_filename function obtains a data frame from fars_read()

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Number of a state

year

The year in question

Details

Error checks to make sure the state number exists

Uses make_filename(year) fars_read(filename)

Value

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

Examples

1
2
3
4
# We set the working directory where the compressed files are stored within
# the package.
x <- setwd(system.file("extdata", package = "packagefars"))
setwd(x)

marcelamu95/repo_packagefars documentation built on Nov. 4, 2019, 5:22 p.m.