Description Usage Arguments Details Value Note Examples
fars_read
is a function that reads data from a csv file in the CURRENT working
directory and returns it as an object of the "tbl_df" class.
1 | fars_read(filename)
|
filename |
A character string containing the name of the csv file to be read, which must be at the CURRENT directory. |
The progress is not shown while the file is being read and all messages are
omitted. This function uses the read_csv()
function from the readr
package. After reading the data from the csv file, the tbl_df()
function
from the dplyr
package is called to convert the data into the tbl_df format
before returing it.
If the file exists, this function returns a data frame table. If the file doesn't exist it raises an error message.
If the file does not exist in the current directory, this function stops execution with an error message.
This functions is exported (users will have direct access to the funciton when they load the package containing this function).
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.