Description Usage Arguments Value Note Examples
This function read the FARS data file using read_csv from readr package using automatic import for data type. Using read_csv, it reads standard and compressed csv.
1 | fars_read(filename)
|
filename |
A character string with name of the file to read. If filename do not exists the function stops execution. |
a data frame tbl (tibble) with data read from file.
The function makes a check if the file exists.
1 2 3 4 5 6 | ## Not run:
filename <- "accident_2015.csv.bz2"
myData <- function(filename)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.