Running Maxent in R -


sorry if question has come before ask if knows goes each of arguments in maxent() dismo package? have searched various r forum sites , r page couldn't understand how put in arguments. have sample of data frame predictor variables here

library(dismo) system.file("java", package="dismo")  bio_14  bio_19  bio_3   bio_5   forest_cover 9       125     67      329     1 9       125     67      329     1 9       124     68      329     3 10      126     67      319     3 

each row either background or presence point. don't understand after goes p , arguments in maxent() formula. p argument contain x , y coordinates , 3rd column indicating 1 (presence) , 0 (absence)? or column containing 1s , 0s go argument instead? forest_cover categorical variable.

datam<-read.csv("maxent dataset.csv", header=t) datam<-data.frame(datam) parg<-read.csv("maxent p arg.csv", header=t) aarg<-read.csv("maxent arg.csv", header=t) datam[,'forest_cover'] = as.factor(datam[,'forest_cover'])  #p x           y 328206.7075 1257255.387 328759.7075 1256632.385 323102.7012 1256404.391 323029.7117 1267187.402    #a pb 1 1 1 0   #final code     maxent1<-maxent(x=datam, p=parg, a=aarg, factors='forest_cover')      error in maxent(x = datam, p = parg, = aarg, factors = "forest_cover") :    unused arguments (x = datam, p = parg, = aarg, factors = "forest_cover") 

please tell me if should moving of stuff around , if in right data frames. in advance

ran maxent in r in following way

maxent(predictors, parg, aarg) 

where

predictors: stack of environmental variables

parg: coordinates of presence localities (x , y coordinates in separate columns)

aarg: coordinates of background points (x , y coordinates in separate columns)


Comments