fars_map_state: fars_map_state return a point graphic representing the...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

fars_map_state return a point graphic representing the distribution of accidents for a given state number and for a given year. This function calls make_filename, fars_read.

Usage

1
fars_map_state(state.num, year)

Arguments

state.num

Interger which represents a state

year

Integer which represents a target year

Value

If the inputs are correct, it returns graphic points where graphic represents the state and each point represent a accident. If state number is unknown in the file, it returns a error like "invalid STATE number : state.num". If there is no accident this year in this state, return "no accidents to plot" and NULL value

Examples

1
fars_map_state(1, 2013)

axellencls/roadAccidentsStudy documentation built on April 5, 2020, 12:53 a.m.