`metadata_add_substitution` is used to align the categorical trait values used by a contributor to the categorical values supported by the database. These values are defined in the `traits.yml` file.

metadata_add_substitution(dataset_id, trait_name, find, replace)

Arguments

dataset_id

Identifier for a particular study in the database

trait_name

The database defined name for a particular trait

find

Trait value in the original data.csv file

replace

Trait value supported by database

Value

`metadata.yml` file with a substitution added