austraits.build
austraits.build copied to clipboard
Recode trait / trait_value
We want a function to recode either
- a trait_name
- (for categorical traits) a trait value
The function would scan across the likely places and update accordingly.
For trait name
- change name in definitions
- change name in metadata in
traits
->trait_name
(see pic) - change name in any substitutions
For trait value
- change value in definitions
- review entire compilation and located records with
old_value
- for each study with values
- check custom R code for
old_value
- check for existing substitutions to
old_value
and change tonew_value
- recompile, if any remaining instances of
old_value
, add a substitution fromold_value
tonew_value
- check custom R code for