Description Usage Arguments Details See Also Examples
Wrapper functions to implement caching for read.table
-based functions using RDS-files.
1 2 3 4 5 6 7 8 9 | read.table.cached(rds, file, ...)
read.csv.cached(rds, file, ...)
read.csv2.cached(rds, file, ...)
read.delim.cached(rds, file, ...)
read.delim2.cached(rds, file, ...)
|
rds |
The name of the file in which the cache is to be stored. |
file |
The name of the file which the data are to be read from. |
... |
Additional arguments to be passed to the base function. |
If the rds
file exists, the object will be loaded from the rds
.
Otherwise the file
will be read and an rds
of the resulting
object will be saved.
do.call.cached
which is the wrapper function that performs the caching.
read.table
which is called to read the data file.
1 | read.csv.cached("testdata.rds", "data/testdata.csv")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.