Description Usage Arguments Examples
Wrapper around a read in data frame in a file (like data.table::fread or read.table). Checks whether a file exists first and opens it with specified function. Logs action at the INFO level.
1 |
file |
character, file path |
f |
function, reads in the file, defaults to data.table::fread |
... |
additional arguments passed to f |
1 2 3 4 5 | ## Not run:
read.in("test.csv")
read.in("dat.csv", read.table, header = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.