Reads either a custom dataframe object or an official Excel file (datalist or data export) and transforms it to a dataframe object which can be used for the standard analysis model
read_data(
data_path = NULL,
custom_data = NULL,
prompt_mapping = TRUE,
language = "de"
)
a dataframe which can be used to compute the standard analysis model
a string indicating the path for an official Excel file,
if this parameter is set to NULL
, the function reads the dataframe
object provided in the parameter custom_data
instead
a dataframe which was imported by the user beforehand,
if this parameter is set to NULL
, the function import the data from
the path provided in the parameter data_path
instead
a boolean indicating whether the function prompts the
user for the exact mapping of his dataframe or whether the columns are
mapped automatically by order. This parameter is only relevant when
custom_data
is not set to NULL
a character string representing the language in which the
columns will be displayed during the mapping prompt ("de"
or
"fr"
or "it"
or "en"
). This parameter is only relevant
when custom_data
is not set to NULL
Exactly one of data_path
or custom_data
must be NULL
.