Write a general function to update the cohort names in the Shiny app. Potential options to include:
- Pass a name mapping as a parameter
- Reading the name mapping from file if available (what type of file? Excel, json, txt ...?)
Notes:
- Already tried to update the names when forming the cohorts, but it turned out to be tricky: I got a warning that "cohort_name must be snake case and less than 100 characters" and the cohorts were renamed automatically.
- The snake case is more solid than names potentially containing spaces and special characters, so it's probably better to leave it unchanged during code execution.
- The safest choice would then be to update the names in the final summarised result, once all computation is done.
Write a general function to update the cohort names in the Shiny app. Potential options to include:
Notes: