Hello Kristiina,

Error in mcp(xy, id) :
At least 5 relocations are required to fit an home range
However, when I make the data into a traj or try table(id), they both tell me that all my animals have 10-13 relocations. Yet, when I tried this,
> any(table(id)<5)
[1] TRUE
but I was unable to find the erroneous animal.
> ta <- table(id)<5
> ta[ta<5]

Be careful here, the correct code should be:
ta <- table(id)
ta[ta<5]
The code should then work,
Best regards,

Clément Calenge


id
S05_63007 S05_7207 S05_7507 S05_7607 S11_72407 S17_81407 S17_81507
FALSE FALSE FALSE FALSE FALSE FALSE FALSE
SG_72307 SG_72407 SG_72607 SG_72707 X01A_71108 X07_71008 X07_71108
FALSE FALSE FALSE FALSE FALSE FALSE FALSE
X07_7808 X07_7908 X08_71008 X09_71908 X13_72308 X16_72508 X16_72608
TRUE FALSE FALSE FALSE FALSE FALSE FALSE
X16_73008 X17_72608 X17_72808 X17_8108 X19_72808 X19_72908 X19_73108
FALSE FALSE FALSE FALSE FALSE FALSE FALSE
X20_73008 X21.23_8408 X21.23_8508 X22_8608 X22_8708 X25_8408 X39_11708
FALSE FALSE FALSE FALSE FALSE FALSE FALSE
X39.40_11808 Y1.2_7908
FALSE FALSE

I followed your advice, and did
> out <- names(ta[ta<5])
> pc <- mcp(xy[!(id%in%out),], factor(id[!(id%in%out)]))
Error in apply(df.t, 1, dist.cdg) : dim(X) must have a positive length
In addition: Warning message:
In min(table(id)) : no non-missing arguments to min; returning Inf
but can't get any further.
Please advise! Thank you for your time. I tried the code on a subset of my data and it produced MCPs and I'm very excited to see them for all of the data!
sincerely,
Kristiina


Kristiina Hurme
Doctoral Candidate
Dept. of Ecology and Evolutionary Biology
University of Connecticut
Storrs, CT 06269
[email protected] <mailto:[email protected]>
http://web.me.com/kjhurme/insularum/Home.html
www.ristohurme.com/insularum.htm <http://www.ristohurme.com/insularum.htm>









--
Clément CALENGE
Cellule d'appui à l'analyse de données
Direction des Etudes et de la Recherche
Office national de la chasse et de la faune sauvage
Saint Benoist - 78610 Auffargis
tel. (33) 01.30.46.54.14

_______________________________________________
AniMov mailing list
[email protected]
http://lists.faunalia.it/cgi-bin/mailman/listinfo/animov

Reply via email to