Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: mutate for summarized result #7

Open
ablack3 opened this issue Feb 20, 2025 · 0 comments
Open

Feature request: mutate for summarized result #7

ablack3 opened this issue Feb 20, 2025 · 0 comments

Comments

@ablack3
Copy link

ablack3 commented Feb 20, 2025

Problem:

There is often a need to modify summarizedResult objects. This would be changing existing estimates or adding new derived estimates based on the data in the summarized result. Currently this is difficult because:

  1. Data is stored in rows so modifying an estimate requires targeting specific rows
  2. Estimates are stored a character strings with special values like "-". Modifying them requires casting.

The tidy function is very helpful to get the summarized result into a more manageable format to modify. However it is unclear how to go from a tidy formatted result back to the summarizedResult which is needed for table and plot functions.

Possible solutions:

perhaps we can have a workflow like

summarizedResult |>
   tidy() |>
   mutate() |>
   as.summarizedResult() # some columns would be automatically treated as estimates

Or perhaps there could be a mutateEstimates function that can help with these operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant