Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
Function that reads in the fars data
1 | fars_read(filename)
|
filename |
A character string giving the path to the file to be read |
The function uses read_csv to import the data and then converts it to a dataframe using tbl_df. read_csv is silent through the use of suppressMessages
stops processing if the file does not exist at the path
if the file exists at the path, it returns a data frame with the parsed data using the column types inferred from the first 1000 rows of data. If the file name does not exist the function stops with a message
1 2 3 4 | ## Not run:
fars_read("accident_2013.csv.bz2")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.