[Basta-users] difficulty with CensusToCaptHist

Owen Jones jones at biology.sdu.dk
Mon Mar 21 22:18:44 CET 2016


Hi Shafkat,

That looks like a bug.
I’ll investigate and get back to you ASAP.

In the meantime you could simply replace the ID with the rowname.
i.e.

x$ID <- rownames(x)


Best wishes,
Owen

On 21 Mar 2016, at 21:37, Shafkat Khan <shafkat.khan at gmail.com<mailto:shafkat.khan at gmail.com>> wrote:

Hello:

I've been trying to use CensusToCaptHist function on a dataset. Upon converting the detection dataset that I have (with ID and Date (of detection) as column header, the resulting matrix attributes seemingly new IDs to the existing record. E.g.

     ID 2009 2010 2011 2012 2013 2014 2015 2016 2017
1     1    0    0    1    1    1    0    1    0    1
10    2    0    0    0    0    1    0    1    0    1
100   3    0    0    1    0    0    0    0    0    0
101   4    0    0    1    0    0    0    0    0    0
102   5    0    0    1    0    0    0    0    0    0
103   6    0    0    1    0    0    0    0    0    0
104   7    0    0    1    0    0    0    0    0    0
105   8    0    0    1    0    0    0    0    0    0

Here, the ID I had listed in the census file doesn't match up with the output matrix IDs. For example, the second record, the ID #10 from the input file gets relabelled as ID # 2 in the output, which doesn't match the birth/death file I have with the initial IDs. Subsequently, the Datacheck results in an error message, which basically says that a bunch of the IDs have measurements after death or before birth, which I imagine is from being mismatched with original IDs.

Is there a bug in the program? Or am I missing something? I formatted the datasets pretty much after the BaSTA users guide/vignette. I'm using the version 1.9.4 that I downloaded from the website and I'm using Rstudio. I have checked my data several times so that birthdeath and the detection/census files agree on dates when a given individual is alive/detected. Any help is much appreciated!

Shafkat
[https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif]
Shafkat Khan
Ph.D Candidate
Odum School of Ecology
University of Georgia


_______________________________________________
Basta-users mailing list
Basta-users at lists.r-forge.r-project.org<mailto:Basta-users at lists.r-forge.r-project.org>
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/basta-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/basta-users/attachments/20160321/830f0569/attachment.html>


More information about the Basta-users mailing list