epix_slide()
converts to a tibble
rather than an epi_df
- incompatible with arx_forecaster()
#208
Labels
P0
high priority
In the slide function for an
epi_archive
object, there is a call to convert to a tibble when performing the computation by group:So, when a function is used the output from that slide function is a tibble, but the main forecasting function
epi_forecaster()
from epipredict requires anepi_df
to be inputted else it throws an error. Below is an example where we use the latest version of epipredict on GitHub:So, it looks like we're currently blocked from sliding a forecaster using
epi_forecaster()
over anepi_archive
. Based on a quick inspection, removing thetibble::as_tibble() %>%
line seems to do the trick so thatepi_forecaster()
can work when used as the function inepix_slide()
, but the impact of this change should be further investigated before implementing (Some qs about that: Would that change cause any major issues elsewhere? For what purpose was the conversion to tibble done in the first place?). Also, I am not sure that some of the resulting metadata (ex.as_of
) makes sense in the outputtedepi_df
if we do make the above change, but perhaps that could be a separate issue.The text was updated successfully, but these errors were encountered: