idem-lab / conmat

Create Contact Matrices from Population Data
https://idem-lab.github.io/conmat/dev/
Other
17 stars 2 forks source link

No method for `prepare_population_for_modelling` for class of `conmat_population` #169

Open MikeLydeamore opened 2 months ago

MikeLydeamore commented 2 months ago

I think when we added the class conmat_population, an error where there is no prepare population for modelling class for our object has appeared:

library(conmat)
prepare_population_for_modelling(get_polymod_population())
#> Error in UseMethod("prepare_population_for_modelling"): no applicable method for 'prepare_population_for_modelling' applied to an object of class "c('conmat_population', 'tbl_df', 'tbl', 'data.frame')"

Created on 2024-07-26 with reprex v2.0.2

There is a conmat_population method (in get-age-population-function-internals.R, line 20) but it doesn't seem like it's being exported properly.