Description Usage Arguments Details Value Warning Examples
View source: R/fars_functions.R
The function fars_read
reads the contents of a compressed file in .bz2
format and returns them in a
tibble object.
1 | fars_read(filename)
|
filename |
The name of the compressed file which data are to be read from (a string value). If the file does not exist in the working directory, you should specify the whole path. |
The function uses the algorithm of the read_csv
function.
A tibble object with the contents of the filename.
Provided that the file does not exist, the function will throw an error.
1 2 3 4 5 | # We set the working directory where the compressed files are stored within
# the package.
WD <- setwd(system.file("extdata", package = "rfars"))
fars_read("accident_2013.csv.bz2")
setwd(WD)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.