fars_map_state: Plots the accidents on a map for specified state and year

Description Usage Arguments Note Examples

Description

This function takes 'state number' and 'year' as input and verifies if its a valid state number and then check if the number of accidents is NONE or not. If not then reads the latitude and longitude and plots it on graphical maps

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Input is a numerical value which references a state

year

Input should be numerical value denoting year.

Note

It throws an error if state number is not valid and prints"invalid state number" state.num" It returns a message "no accidents found" if number of accidents for specified state and year is 0.

Examples

1
fars_map_state(12,2015)

mayankvanani/Farvis-R-package documentation built on May 31, 2019, 4:55 a.m.