Description Usage Arguments Value Examples
This is a simple function which first reads 'filename' file in the working directory and
then outputs it as a tibble. You can input filename (using the filename
argument).
It the file does not exist in the working directory, the function will stop and print an
error message; otherwise the function will call 'read_csv' function in "readr" package and
'tbl_df' function in "dplyr" package to read and transform the file into a tibble.
1 | fars_read(filename)
|
filename |
The name of the file you want to process |
The function returns the content of the file in a tibble
1 | fars_read("../data/accident_2013.csv.bz2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.