epiforecasts / socialmixr

R package for deriving social mixing matrices from survey data.
http://epiforecasts.io/socialmixr/
Other
38 stars 10 forks source link

Error when calling list_surveys() #104

Closed BlackEdder closed 9 months ago

BlackEdder commented 1 year ago

I get the following error when calling list_surveys(). I have installed the latest version github version following the README.

> socialmixr::list_surveys()
Error in `[.data.table`(record_list, , `:=`(date, min(date)), by = common_doi) :
  The items in the 'by' or 'keyby' list are length(s) (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1). Each must be length 91; the same length as there are rows in x (after subsetting if i is provided