epiverse-trace / epiparameter

R package with library of epidemiological parameters for infectious diseases and functions and classes for working with parameters
https://epiverse-trace.github.io/epiparameter
Other
33 stars 11 forks source link

Refactor `epireview_to_epidist()` to fix issues with `as_epidist()` #334

Closed joshwlambert closed 5 months ago

joshwlambert commented 5 months ago

This PR rewrites large parts of the epireview_to_epidist() function to make it more robust to the various parameter entries from the {epireview} R package.

The issues that led to this refactor are: #303, #306 and #327. Each of these should be resolved by the changes made in this PR and a unit test has been added to the package to cover each of these cases. I will post a reproducible example demonstrating the fix in each respective issue.

as_epidist() function documentation is also updated.