Description Usage Arguments Details Value Examples
View source: R/fars_functions_package0.1.R
This function reads a csv datafile. Though designed speficially to read FARS data it can be used to read all kinds of csv files. It uses the readr::read_csv
) function
1 | fars_read(filename)
|
filename |
A character string with the filename. The file should be in csv-format. Zipped csv-files can also be read |
If the file doesn't exists it will throw an error.
Returns a tibble with all the data from the csv file
1 2 3 4 5 | ## Not run:
fars_read("accident_2015.csv.bz2"))
fars_read(make_filename(year=2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.