Description Usage Arguments Details Value Examples
Loads a CSV file defined by filename
argument and returns the data
as a data frame tibble. Ends with an error if filename is not valid
1 | fars_read(filename)
|
filename |
Path to the CSV file ( |
For the filename
provided, the function checks if the file
exists. If not, it stops with an error message. Otherwise the file is read
in using read_csv
and returned as a data frame tibble.
The function returns a tibble (data.frame) based on the CSV file.
1 2 3 4 | ## Not run:
data_2010 <- fars_read("./data/accident_2010.csv.bz2")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.