Description Usage Arguments Details Value Note Examples
View source: R/assignment_w2.R
Reads a csv file, checking if the file truly exists or not
1 | fars_read(filename)
|
filename |
Name of the file to be read. |
If it doesn't exist, an error will be thrown
Either a tibble dataframe with the data or a error message indicating that the file doesn't exist.
fars_read depends on read_csv and tbl_df from the readr and dplyr packages respectively.
1 | ## Not run: fars_read("accident_2013.csv.bz2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.