Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
This function checks if the file exists in the work directory. If does, it load it to a data frame.
1 | fars_read(filename)
|
filename |
The file name that has the data that should be loaded. |
This function uses read_csv function from readr package. In order to load the file, it should be in the working directory.
This functions returns a data frame with file data loaded, if it exists. If the file doesn't exist, it stops the function and return a message telling that the file doesn't exist.
1 2 3 4 | ## Not run:
fars_read("data/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.