Currently predict takes a disag.data object. I guess a lot of the time that's what we want. But I can also image just wanting to do predict on a stack of covariate rasters. Or even a dataframe of covariates.
So I think I'll aim to make predict_data be able to handle either a raster stack or a disag.data object. Part of that will be making the fit_model function return the mesh. But i think that's a sensible thing to do anyway as it's an integral part of the model.
Small thing of style is that most predict functions take the model object first. I think we should swap the argument order.
I know I'm opening a lot of issues without actually fixing anything. I'll slowly get round to fixing some of them unless you jump in and tell me my ideas are wrong.
Currently predict takes a disag.data object. I guess a lot of the time that's what we want. But I can also image just wanting to do predict on a stack of covariate rasters. Or even a dataframe of covariates.
So I think I'll aim to make predict_data be able to handle either a raster stack or a disag.data object. Part of that will be making the fit_model function return the mesh. But i think that's a sensible thing to do anyway as it's an integral part of the model.
Small thing of style is that most predict functions take the model object first. I think we should swap the argument order.
I know I'm opening a lot of issues without actually fixing anything. I'll slowly get round to fixing some of them unless you jump in and tell me my ideas are wrong.