fars_map_state: Map the data points on a map over the selected state This...

Description Usage Arguments Value

Description

Map the data points on a map over the selected state This function maps the state given by the user (using the state) and the datapoints for the year given by the user (using the year). The function uses the map and points functions from the packages map and graphics, respectively. The function uses the function make_filename to create a string of the filename and parses this string to the fars_read function in order to read the data from the file. The function will result in an error if either the state number is not given as an integer or an incorrect state number is given (using the state)

Usage

1

Arguments

state

Integer specifying for what state data is to be displayed

year

An integer specifying for what year data is to be displayed

Value

This function returns a map of the given state and the datapoints for that state.


Ademo73/Coursera_assignment documentation built on May 5, 2019, 12:27 p.m.