Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
This function checks for the existence of a file having a specified name. If the file exists, its contents are read and returned by the function.
1 | fars_read(filename)
|
filename |
A character string giving the name of the file to be read. An error is generated if no file with the specified name exists in the working directory. |
A data.frame object containing the contents of the specified file.
To ensure a filename passed to this function is properly constructed use the function in this package called make_filename.
1 2 3 4 | ## Not run: fars_read("accident_2013.csv.bz2")
fars_read(make_filename(2013))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.