Skip to content

Added updateColumnValues FUN to change names of cohorts or other variables in summarised result - #101

Merged
cebarboza merged 1 commit into
developfrom
95-cohort-names-for-shiny
Aug 20, 2026
Merged

Added updateColumnValues FUN to change names of cohorts or other variables in summarised result#101
cebarboza merged 1 commit into
developfrom
95-cohort-names-for-shiny

Conversation

@laacri

@laacri laacri commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Changes:

  • Added updateColumnValues() general function to change the names of a chosen column in a summarised result object, provided a name mapping
  • Added basic documentation and a unit test

Issues:
Closes #95

@laacri
laacri requested a review from cebarboza August 20, 2026 11:35
@laacri laacri self-assigned this Aug 20, 2026
@laacri laacri added the enhancement New feature or request label Aug 20, 2026
@laacri laacri linked an issue Aug 20, 2026 that may be closed by this pull request

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice function for the test summarised result. Maybe omopgenerics has some test function for that?

@laacri laacri Aug 21, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used the example from omopgenerics::newSummarisedResult()'s documentation. I think there is no specific function to generate mock data in omopgenerics, but there is instead a mockSummarisedResult() function from the visOmopResults package and some other functionalities from omock

@cebarboza

Copy link
Copy Markdown
Member

Thanks a lot for the contribution!

@cebarboza
cebarboza merged commit a5f5320 into develop Aug 20, 2026
2 of 5 checks passed
@cebarboza
cebarboza deleted the 95-cohort-names-for-shiny branch August 20, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Function to update cohort names in Shiny app

2 participants