reconhub / incidence

☣:chart_with_upwards_trend::chart_with_downwards_trend:☣ Compute and visualise incidence
https://reconhub.github.io/incidence
Other
58 stars 13 forks source link

type change found in bracket method for incidence object #41

Closed zkamvar closed 6 years ago

zkamvar commented 6 years ago

I think this originates from the fact that incidence.Date() calls incidence.integer() internally when packaging timespan. The question would be: what should be the proper behavior?

library(outbreaks)
library(incidence)
i <- incidence(ebola_sim_clean$linelist$date_of_onset)
i[]$timespan
#> Time difference of 389 days
i$timespan
#> [1] 389

Created on 2018-06-28 by the reprex package (v0.2.0).