View source: R/import_data_file.R
import_data_file | R Documentation |
The function is used in the ADAPT app to import data from uploaded csv files into a data frame. Only relevant columns are returned, the column names are matched and unified, so that data produced by different versions of the EuFMDiS software can be used.
import_data_file(
pattern,
names_files,
paths_files,
def_columns,
transpose = FALSE
)
pattern |
Character string containing a regular expression to identify the correct file by its name. |
names_files |
Character vector of file names as they were uploaded (= file name on the original file system from which they were uploaded) |
paths_files |
Character vector of file names + absolute paths of the
files in the local hard drive to which they were uploaded. Each entry of
|
def_columns |
Data frame of meta information containing the possible
column names in the different versions of the EuFMDiS output files. The data
frame must contain columns |
transpose |
Logical flag (default = FALSE). COntrols whether the data frame should be transposed prior to any data manipulation/extraction. |
Data frame containing the columns defined in def_columns
for
the relevant Datensatz
according to the argument pattern
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.