Description Usage Arguments Value Note Examples
View source: R/fars_functions.R
The "fars_read" function reads a csv format FARS dataset. You can customize
the file to read (using the filename
argument). If you do not save
it to a variable, the function will print out information about the dataset
to the console.
1 | fars_read(filename)
|
filename |
A file path where the dataset is available |
This function returns a dataset as a "data.frame" (and also incorporates the dplyr package's "tbl_df" and "tbl" classes). Additionally, it prints out information about the dataset to the console if a variable name to save is not defined.
There is an "if" condition in the beginning, which checks if the given file path exists, results in an error if returns FALSE.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.