This PR updates the <epidist> class exported by {epiparameter} by unnesting the previous disease element, which contained a list with disease and pathogen. However, it is easier if the pathogen is exposed at the highest level of the list. This, along with PR #252, is giving more prominence to interacting with {epiparameter} data with the pathogen name.
The epidist(), new_epidist(), validate_epidist(), epidist_db(), print.multi_epidist(), list_distribution(), validate_vb_epidist() are all updated to use the unnested elements in <epidist> objects.
Documentation and tests are updated, as is the data_protocol.Rmd vignette.
This PR updates the
<epidist>
class exported by {epiparameter} by unnesting the previousdisease
element, which contained a list withdisease
andpathogen
. However, it is easier if thepathogen
is exposed at the highest level of the list. This, along with PR #252, is giving more prominence to interacting with {epiparameter} data with the pathogen name.The
epidist()
,new_epidist()
,validate_epidist()
,epidist_db()
,print.multi_epidist()
,list_distribution()
,validate_vb_epidist()
are all updated to use the unnested elements in<epidist>
objects.Documentation and tests are updated, as is the
data_protocol.Rmd
vignette.