Description Usage Arguments Value Examples
This function (fars_read) validates that an input file exists.
An error message is returned if the file does not exist.
If the file exists then the file is read using the read_csv function from the readr package (read_csv
).
A data frame table is created using the tbl_df function from the dplyr package (tbl_df
).
1 | fars_read(filename)
|
filename |
A character string giving the path, name, and extension of a file to read in. |
This function returns a data frame table containing data for motor vehicle crashes for a particular year if the input csv file exists. An error message is returned if the file does not exist.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.