Description Usage Arguments Value Note Examples
Use the "accident.dbf" file from a known year obtained from the FTP site of the NHTSA and placed in the working directory and convert it to a csv.bz2 file with the correct filename to be used by the other fars functions.
1 | make_fars_file(year)
|
year |
a numberic vector of length 1 representing the year of the dbf |
data.frame of the file that is written to the working directory.
the function assumes that the user has put an "accident.dbf" file from the FARS FTP site of a given year in the working directory. If this file is available, the function will stop and show a message. Also, if the year given is not between 1975 and the year before the current year, the function will stop and show a message.
1 2 3 | ## Not run:
make_fars_file(2012)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.