Description Usage Arguments Details Value See Also Examples
View source: R/fars_functions.R
Reads file with '.csv/.bz2' extensions into R workspace using readr library
and converts it to a data.frame using the dplyr
tbl_df
function.
If file_name
not found function is stopped and "file does not exist"
warning is returned.
1 | fars_read(filename)
|
filename |
File is .csv or .bz2 compressed file |
This is a helper function used with other FARS family functions in this
package. Specifically it is called in fars_read_years
,
fars_summarize_years
and fars_map_state
.
If file name exists in current working directory, returns data.frame class object. If file name not found, function stopped and "file does not exist" warning returned.
fars_read_years
for reading and subsetting multiple FARS files into
a single data.frame
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.