Description Usage Arguments Value Note Examples
This function reads in a csv file, and if it exists converts it to a tibble data frame which inherits properties from data.frame class. The tibble data frame is more suitable in some cases than standard data frame, as it, among other things, doesn't convert strings to factors, keeps orignal variable names (e.g., if they contain a space), uses a somewhat different print method, etc.
1 | fars_read(filename)
|
filename |
A path to a file. Files ending in .gz, .bz2, .xz, or .zip will be automatically uncompressed |
A tibble data frame. If the file cannot be found an error is generated and execution is halted
The file to be read needs to be a csv or a compressed csv. Other file formats cannot be read with this function.
1 | fars_read(make_filename(2015))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.