Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
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()
1 | fars_map_state(state.num, year)
|
state.num |
Number of a state |
year |
The year in question |
Error checks to make sure the state number exists
Uses make_filename(year) fars_read(filename)
A plot or set of plots based on latitude and longitude from the data file
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.