Skip to content
Prev 19083 / 29559 Next

Maxent and Maxlike data.frame methods

Hi Gerardo

I'm not sure I understand exactly what your question is about. Maybe some reproducible example code could help... Assuming you want to fit a maxent model using a dataframe and providing background presences, the help file in ?maxent should be helpful as it says:

maxent(x, p, ...)

p: [...] If x is a data.frame, p should be a vector with a length equal to nrow(x) and contain 0 (background) and 1 (presence) values, to indicate which records (rows) in data.frame x are presence records, and which are background records.

HTH, Rafael
On 12.08.2013, at 08:28, Gerardo Martin <gerardommc at gmail.com> wrote:

            
--
Rafael W?est
Swiss Federal Research Institute WSL
Z?rcherstrasse 111
8903 Birmensdorf
Switzerland

+41 44 7392126
rafael.wueest at wsl.ch
http://www.wsl.ch/info/mitarbeitende/wueest/index_EN