Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
This is a simple function to read a csv file. First, it checks if the given filename exists. If it exists, it reads it. Then it converts the resulting data frame to table.
1 | fars_read(filename)
|
filename |
A character string giving the file name to be read |
This function returns to a table frame including the info from the given filename.
If the file for the given year does not exist, it turns into a warning.
1 2 3 4 | ## Not run:
tbl_data <- fars_read('accident_2013.csv.bz2')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.