idem-lab / map-ir-pipeline

Prototype demonstration of stacked generalisation method used in https://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.3000633#sec010
3 stars 1 forks source link

Plot each year insecticide 79 #95

Closed njtierney closed 5 days ago

njtierney commented 6 days ago

This PR will make it so we can plot multiple years for #79

In order to do this it required a refactor of the code that generated the lag covariates, as the tidyr approach pulled too much RAM and made everything fall over. @goldingn provided a great approach that is by my estimates, at least 7 times less memory intensive at least 5 times faster for our data size.

Still working on developing the code to work for the pixel maps, but this should work soon.