Description Usage Arguments Value Examples
View source: R/fars_functions.R
The function fars_read
reads csv files from the US National Highway
Traffic Safety Administration's Fatality Analysis Reporting System and
creates a data frame out of the values.3
1 | fars_read(filename)
|
filename |
A path to a csv file. Files ending in .gz, .bz2, .xz, or .zip will be automatically uncompressed. |
A data frame with the values of the csv file. If type of
filename
is not correct or the file does not exist, an error message
is generated and nothing is returned.
1 2 | setwd(system.file("extdata", package = "fars"))
fars_read("accident_2015.csv.bz2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.