Description Usage Arguments Details Value Examples
This function reads a FARS dataset containig in csv file given in argument. If the file doesn't exist the function stops and prints an arror message saying that the data doesn't exist. If the data exist, the functions reads it and create a data frame from it.
1 | fars_read(filename)
|
filename |
A character string giving the name of the file to read. |
If the format of the file is not csv.bz2 or csv, the function returns an error message saying "invalid file argument"
a data frame.
1 2 | filename <- system.file("extdata", make_filename(2014), package = "FarsPack")
acc2014 <- fars_read (filename)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.