Description Usage Arguments Details Value References Examples
View source: R/fars_functions.R
Read a file that delivers data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System and provide a data frame tbl
1 | fars_read(filename)
|
filename |
The name of the file which the data are to be read from. Each row of the table appears as one line of the file. If it does not contain an absolute path, the file name is relative to the current working directory, getwd(). Tilde-expansion is performed where supported. This can be a compressed file (see file). |
The function stopped with the message "file <filename> does not exist" if the file can not read.
This function returns a tibble of ( "tbl_df", "tbl", "data.frame" )
https://www.nhtsa.gov/Data/Fatality-Analysis-Reporting-System-(FARS)
1 2 | tf <- "accident_2015.csv.bz2"
fars_read( filename = tf )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.