Description Usage Arguments Details Value Depends on Examples
This functions reads a file in table format, and returns it as an object of the "tbl_df" class. If the file does not exist in the current directory, this function stops execution with an error message. While reading all messages are suppressed.
1 | fars_read(filename)
|
filename |
A character string giving the filename of the csv file to be read |
This function uses the read_csv()
function from the
readr
package, with progress = FALSE
parameter.
Then the tbl_df()
, function from the dplyr
package
is called to convert the data into the tabl_df format before returing it.
returns a data frame table if the file exists, throws an error if the file doesn't exist.
read_csv
in the readr
package.
tbl_df
in the dplyr
package.
1 2 3 4 | ## Not run:
fars_read("accident_2014.csv.bz2")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.