View source: R/file_definition.R
Helper function for new_file_definition_sas()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | new_file_definition_sas_(
file_path,
specification_files = NULL,
file_meta = NULL,
skip_rows,
n_max,
encoding = NULL,
to_lower,
rename_cols,
retype_cols,
adapters = new_adapters(),
cols_keep,
extra_col_name = NULL,
extra_col_val = NULL,
extra_col_file_path,
err_h,
...
)
|
file_path |
A string holding the path to the data file. |
specification_files |
An optional character vector holding the paths to the files, where the file structure is described. |
file_meta |
An optional file_meta class object,
holding some meta information for each data column
(column description, possible column values + descriptions of possible
column values).
For details see section meta information.
If the argument |
skip_rows |
The number of rows to be skipped. In the case of DSV or
EXCEL files: If the argument |
n_max |
A number, defining the maximum number of rows to be
read. If |
encoding |
A string, defining which encoding should be assumed when reading the data file. The following valuels are allowed:
|
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
|
rename_cols |
A logical value, which defines if the columns given in
the data file should be overwritten by the columns given in argument
|
retype_cols |
A logical value, which defines if the types of the
columns given in SAS file changed to the types given in the
|
adapters |
An optional list argument, holding a list of adapter functions (See section adapters). |
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 |
err_h |
An error handler |
... |
Additional function arguments for
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.