Error in singlefold(obs, k) : insufficient records:2, with k=5 / unused argument (kfolds = 4)
This is the code I use:
competition <- ENMevaluate(occ = occ_coord, env = env, bg.coords = bg_coord, method = "randomkfold", RMvalues=seq(0.5, 5, 0.5), fc = c("L", "LQ", "H", "LQH"), algorithm='maxent.jar')
I'm unable to solve this, previously I've used a different code which had kfolds is an unused argument - that is why replaced it with the code shown above.
Previous code:
competition <- ENMevaluate(occ = occ_coord, env = env, bg.coords = bg_coord, method = "randomkfold", kfolds=4, RMvalues=seq(0.5,4,0.5), fc = c("L", "LQ", "H", "LQH"), algorithm='maxent.jar')
Previous error:
Error in ENMevaluate(occ = occ_coord, env = env, bg.coords = bg_coord, : unused argument (kfolds = 4)
Anything will be helpful right now as I am very short on time (<24 hours).
Thank you!