Description Usage Arguments Value Note See Also Examples
Match a state number and year to the Fatality Analysis Reporting System dataset. And produce a scatter plot of incident within a map af the state
1 | fars_map_state(state.num, year,fars_path)
|
state.num |
number identifying a statse in US character, integer or numeric |
year |
4 digit year character, integer or numeric |
fars_path |
charcter string correspondinf to the directory contianing the fars data |
a map object
both arguments should only include digits otherwise the program will stop with an error
if the state number is absent from the file an error is produced
make_filename
fars_read
1 2 3 4 5 6 | ## Not run:
# need to be in the same directory as the data
setwd("data")
my_map <- fars_map_state(1,2013)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.