Description Usage Arguments Value Examples
View source: R/fars_functions.R
This function, named "fars_read", reads a file and save the data in a variable called "data".
1 | fars_read(filename)
|
filename |
A single string with the name of the file. Only years 2013, 2014 and 2015 are available. Trying loading a different year will result in a message saying the file does not exist. |
The function returns a data frame containing the data of the file. The output file is named "data".
1 2 | ## Not run: dirdata <- system.file("extdata", "accident_2013.csv.bz2", package = "FARSinR2")
## Not run: fars_read(dirdata)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.