Description Usage Arguments Value Examples
This function loads data from the given CSV file and it adds some extra data coming from the fields in the file name. The number of capture groups in the regular expression (pattern) must match the number of fields.
1 | load.data.file(fname, pattern, fields, custom.func = NULL, ...)
|
fname |
CSV file name. |
pattern |
Regular expression used to extract the fields values. |
fields |
Fields that uniquely identify the data from a CSV file. |
custom.func |
Function for post-processing the data. Defaults to NULL. |
... |
Arguments to pass to data.table::fread(). |
A data.table object containing the data read from the CSV file.
1 2 3 4 5 6 | ## Not run:
load.data.file('results-1-simple.csv',
'results-(\\d+)-(\\w+)\\.csv',
c('ID', 'config'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.