R:BIOMOD error: argument 1 matches multiple formal arguments

57 Views Asked by At

I run the following codes using biomod2 package

ProLau_models <- 
  BIOMOD_Modeling(
    data = ProLau_data,
    models = c("GLM", "GBM", "RF", "GAM"),
    models.options = ProLau_opt,
    NbRunEval = 2,
    DataSplit = 80,
    VarImport = 3,
    modeling.id = "demo1"
  )

I faced the following error.

Error in BIOMOD_Modeling(data = ProLau_data, models = c("GLM", "GBM", :
argument 1 matches multiple formal arguments

How can I handle this error?

1

There are 1 best solutions below

0
anackr On

the package has been updated since this tutorial, so the argument names have changed. try:

ProLau_models <- 
  BIOMOD_Modeling(
    bm.format = ProLau_data,
    models = c("GLM", "GBM", "RF", "GAM"),
    bm.options = ProLau_opt,
    nb.rep = 2,
    data.split.perc = 80,
    var.import = 3,
    modeling.id = "demo1"
  )