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
I think this originates from the fact that
incidence.Date()
callsincidence.integer()
internally when packaging timespan. The question would be: what should be the proper behavior?Created on 2018-06-28 by the reprex package (v0.2.0).