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
32 stars 11 forks source link

Add `c()` method for `<epiparameter>` #368

Closed joshwlambert closed 1 month ago

joshwlambert commented 1 month ago

This PR addresses #351 by adding a c() S3 method for the <epiparameter> and <multi_epiparameter> classes. This ensures the class is retained when combining objects of these classes.

Units tests for c.epiparameter() and c.multi_epiparameter() are also added.