I'm attempting to predict elk elevational selection using elk location points (Elk
) relative to an NED elevational raster (Elev
) using maxent
in R. Both are projected in NAD83 using lat/long, and I've cropped the raster to get around memory issues in R.
I've divided the Elk dataset into 5 groups, 4 of which are now the training group (ElkTrain
) and 1 I've reserved as the test group (ElkTest
). I also created my own background data (NonElk
) with its own training and test data (NonElkTrain
, NonElkTest
). I'm running into this error (with and without using my background data) and I can't find anyone discussing this relative to maxent or when using only one dataframe:
> Max <- maxent(x=Elev, p=ElkTrain, a=NonElkTrain)
or
> Max <- maxent(x=Elev, p=ElkTrain, a=NULL, nbg=5000, factors=NULL, removeDuplicates=TRUE)
Error in match.names(clabs, names(xi)) : names do not match previous names
In addition: Warning message:
In .local(x, p, ...) : 1 (0.02%) of the presence points have NA predictor values
Since I'm only using one dataframe (ElkTrain
), what names aren't matching?