View source: R/file_definition.R
Helper function for new_file_definition()
1 2 3 4 5 6 7 8 9 10 11 | new_file_definition_(
file_path,
file_structure,
to_lower,
cols_keep,
extra_col_name = NULL,
extra_col_val = NULL,
extra_col_file_path,
extra_adapters = new_adapters(),
err_h = composerr("Error while calling 'new_file_definition_()'")
)
|
file_path |
A string holding the path to the data file. |
file_structure |
A file_structure class object.
This type of objects can be created by the functions
|
to_lower |
A logical flag, defining if the names of the columns should
be transformed to lower case after reading the data set (by calling
|
cols_keep |
Either |
extra_col_name |
An optional string, which defines the column, which
will be added to the data set (after reading it with function |
extra_col_val |
An optional value (any atomic type), which will be added
(after reading the data set with function |
extra_col_file_path |
Either |
extra_adapters |
An optional adapters class object, which holds a list of adapter functions. These adapter functions will be added to the adapter functions already stored in the file_structure class object. For further details on adapter functions see section adapters. |
err_h |
An error handler |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.