Open KitSimon opened 1 year ago
I did some digging in the kuenm_projchanges function and noticed a quirk in how the model stats are read. It presupposes median statistics if I'm correct? In that case I think the fact that I opted to only generate mean statistics with kuenm_modstats_swd in the previous step might be a contributing factor to the error.
# Reading model names
nstas <- list.files(fmod.stats, pattern = "med.tif$",
full.names = TRUE, recursive = TRUE)
I'm trying but failing to run kuenm_projchanges as such:
Running the script results in the error below.
The directory prjchn is correctly generated, but containing a single subdirectory "Changes_EC", which is empty. Omitting the for-loop doesn't seem to change anything, as the error message persists. It has me stumped. How can I go about solving this?