Add Study Data to a metawoRld Project
add_study_data.RdAdds the metadata (YAML) and quantitative data (CSV) for a single study to the project, performing validation against the project's schema.
Arguments
- path
Character string. The path to the root directory of the metawoRld project. Defaults to the current working directory (
.).- study_id
Character string. A unique identifier for the study (e.g., PMID, DOI, or a custom ID). This will be used as the directory name within the
data/folder. Should be filesystem-friendly.- metadata_list
List. A named list containing the study's metadata, conforming to the
metadata_fieldsdefined in the project's schema. Must includemeasurement_methodsandoutcome_groupsas named lists if linkage validation is expected.- data_df
Data frame. A data frame containing the quantitative data, conforming to the
data_fieldsdefined in the project's schema. Must includemethod_ref_idandgroup_labelcolumns matching keys inmetadata_listfor linkage validation.- overwrite
Logical. If a directory for
study_idalready exists, should its contents be overwritten? Defaults toFALSE.