Running Maxent in R
<p>Sorry if this question has come up before but I would like to ask if anyone knows what goes into each of the arguments in <code>maxent()</code> from the dismo package? I have searched the various R forum sites and the R help page itself but I couldn't understand how to put in my arguments.
I have a sample of my data frame for the predictor variables here</p>

<pre><code>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
</code></pre>

<p>Each row is either a background or presence point.
What I don't understand after that is what goes into the p and a arguments in the <code>maxent()</code> formula. Does the p argument contain x and y coordinates and the 3rd column indicating 1 (presence) and 0 (absence)? Or does column containing the 1s and 0s go into the a argument instead? <code>forest_cover</code> is a categorical variable.</p>

<pre><code>DataM&lt;-read.csv("Maxent dataset.csv", header=T)
DataM&lt;-data.frame(DataM)
parg&lt;-read.csv("maxent p arg.csv", header=T)
aarg&lt;-read.csv("maxent a 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&lt;-maxent(x=DataM, p=parg, a=aarg, factors='forest_cover')

    Error in maxent(x = DataM, p = parg, a = aarg, factors = "forest_cover") : 
  unused arguments (x = DataM, p = parg, a = aarg, factors = "forest_cover")
</code></pre>

<p>Please do tell me if I should be moving some of the stuff around and if they are in the right data frames. Thanks in advance</p>