austraits.build icon indicating copy to clipboard operation
austraits.build copied to clipboard

Recode trait / trait_value

Open dfalster opened this issue 1 year ago • 0 comments

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

image

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 to new_value
    • recompile, if any remaining instances of old_value, add a substitution from old_value to new_value

dfalster avatar Aug 10 '22 03:08 dfalster