Description Usage Arguments Value Note Examples
This is a function for importing a single FARS data file into R for analysis.
1 | fars_read(filename)
|
filename |
a valid filepath to data stored in comma separated value form |
This function returns a data frame containing FARS data
The function will stop if the filename
parameter does not refer to a
valid file.
If the file is not in CSV form, the function will attempt to parse it anyway,
but will return parsing failure warnings. The function should not be used for
non-CSV files, as it will likely not properly import the data.
1 | ## Not run: fars_read("data/accident_2013.csv.bz2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.