This functions asks users which columns in the dataframe they would like to keep and records this appropriately in the metadata. The input data is assumed to be in wide format. The output may require additional manual editing.

metadata_add_contexts(dataset_id, overwrite = FALSE, user_responses = NULL)

Arguments

dataset_id

Identifier for a particular study in the database

overwrite

Overwrite existing information

user_responses

Named list containing simulated user input for manual selection of variables, mainly for testing purposes