andrefaa/ENMTML

"error in evaluating the argument 'object' in selecting a method for function 'coef': variable lengths differ (found for 'data')"

Closed this issue · 2 comments

Hi! I'm working in environmental niche modelling (ENM) for 3 species on the R package ENMTML. I've attached the .txt occurrences file and 6 of the 19 bioclimatic variables cutted for the study area.

I've got the next error, and I have no idea how to solve it:
Error in { :
task 1 failed - "error in evaluating the argument 'object' in selecting a method for function 'coef': variable lengths differ (found for 'data')"

Lines of code:

ENMTML(
  pred_dir = envt,
proj_dir = NULL,
occ_file = occ_t1, 
sp= 'species',
x= 'x', 
y='y',
min_occ = 20,
thin_occ = NULL,
eval_occ = NULL,
colin_var = c(method= 'PCA'),
imp_var = TRUE,
sp_accessible_area = c(method='BUFFER', type= '1'),
pseudoabs_method = c(method= 'ENV_CONST'),
pres_abs_ratio= 1,
part = c(method='BOOT', replicates= '1', proportion= '0.7'), 
save_part = FALSE, 
[occ_utils.TXT](https://github.com/andrefaa/ENMTML/files/8564809/occ_utils.TXT)

save_final = TRUE,
algorithm = c('SVM', 'RDF'),
thr= c(type= 'MAX_KAPPA'),
msdm=NULL, 
ensemble= c(method='PCA'),
extrapolation=FALSE
)

occ_utils.TXT
predictors.zip

Appreciate a lot your help!
Regards!

[NEWS] I obtained results by turning imp_var to FALSE. I'll work in that way for now.

Hi Bárbara
Thanks for notifying that.