Skip to contents

Study-specific function that will combine raw data gathered with get_raw_csv_data() with study-specific metadata. It also fixes the metadata suffix if needed, and renames the limits and significance values to the app standard names. Some study-specific variables need to be created with this step.

Usage

merge_meta_with_data(
  data,
  meta,
  expected_columns = c("lower_limit", "upper_limit", "unit", "significance",
    "reason_notdone")
)

Arguments

data

A data set with raw study data.

meta

A list of data frames containing metadata.

expected_columns

A character vector with the columns that should be expected in the data frame. If missing, these columns will be added with missing data (thus, will be made explicitly missing).

Value

A data frame.