Function that simultaneously adds many trait value replacements, potentially across many `trait_name`'s and `dataset_id`'s, to the respective `metadata.yml` files. This function will be used to quickly re-align/re-assign trait values across all studies.
metadata_add_substitutions_table(
dataframe_of_substitutions,
dataset_id,
trait_name,
find,
replace
)
Dataframe with columns indicating `dataset_id`, `trait_name`, original trait values (`find`), and database aligned trait value (`replace`)
Name of column containing study `dataset_id`(s) in database
Name of column containing trait name(s) for which a trait value replacement needs to be made
Name of column containing trait values submitted by the contributor for a data observation
Name of column containing database aligned trait values
Modified metadata files with trait value replacements