[Biomod-commits] (no subject)

Kristen Bouska kpitts at siu.edu
Tue Mar 12 20:15:17 CET 2013


library(biomod2)
train_pa <- read.csv(system.file("external/species/Train_PA.csv",
package="biomod2"))
myRespName <- 'PTM'
myResp <- as.numeric(train_pa[,myRespName])
test_pa <- read.csv(system.file("external/species/Test_PA.csv",
package="biomod2"))
myRespEval <- 'PTM'
myEvalpa <- as.numeric(test_pa[,myRespName])
train_env <-read.csv(system.file("external/bioclim/current/train_env.csv",
package="biomod2"))
myExpl <- as.data.frame(train_env)
test_env <-read.csv(system.file("external/bioclim/current/test_env.csv",
package="biomod2"))
myEvalenv <- as.data.frame(test_env)
myBiomodData <- BIOMOD_FormatingData(resp.var=myResp, expl.var=myExpl,
resp.name=myRespName, eval.resp.var=myEvalpa, eval.expl.var=myEvalenv)

> No pseudo absences selection !Error in validObject(.Object) :
  invalid class “BIOMOD.formated.data” object: invalid object for slot
"coord" in class "BIOMOD.formated.data": got class "NULL", should be or
extend class "data.frame"


-- 
Kristen Bouska
Environmental Resources and Policy Program
Life Sciences II, Room 375 (Mail Code 4325)
Southern Illinois University - Carbondale
Carbondale, IL 62901
618-924-2592


More information about the Biomod-commits mailing list