run_pipeline {eider} | R Documentation |
Reads in data and feature specifications and performs the requisite transformations. Please see the package vignettes for more detailed information on the JSON specification of features.
run_pipeline(
data_sources,
feature_filenames = NULL,
response_filenames = NULL,
all_ids = NULL
)
data_sources |
A list, whose names are the unique identifiers of the data sources, and whose values are either the data frame itself or the file path from which they should be read from. Only CSV files are supported at this point in time. |
feature_filenames |
A vector of file paths to the feature JSON
specifications. Defaults to |
response_filenames |
A vector of file paths to the response JSON
specifications. Defaults to |
all_ids |
A vector of all the unique numeric identifiers that should be in the final feature table. If not given, this will be determined by taking the union of all unique identifiers found in input tables used by at least one feature. |
A list with the following elementss:
features
: A data frame with all the features. The first column is the ID
column, and always has the name id
. Subsequent columns are the features,
with column names as specified in the output_feature_name
field of the
JSON files.
responses
: A data frame with all the responses. The structure is the same
as the features
data frame.
run_pipeline(
data_sources = list(ae = eider_example("random_ae_data.csv")),
feature_filenames = eider_example("ae_total_attendances.json")
)