Susan, Jeanne, Niki and Karl<div><br></div><div>    I am running into some problems with changing the rankdates to the first of the month.  There is a rule that the matured date has to be less than or equal to rank date (With good reason). However, all of the maturedates that also occur mid-month are throwing an error. So, it looks as though I will have to roll those back as well. Will pick at this and try to fix all of the maturedates before rolling the rankdates back.</div>
<div><br></div><div>    I spoke with Karl about this and there is a work-around that could fix the majority while skipping the ones that violate this rule, but it kind of seems like if I am going to be elbow deep in the data anyway, I should just fix the whole problem at once.   Does this fit with how princeton feels about the timeline of this project?  I expect I can have it all fixed my mid-morning monday, I just want to do some cross-checking of maturedates and rankdates and make sure there aren&#39;t any glaring errors before i change a whole bunch of data in 2 tables.</div>
<div><br></div><div>Let me know</div><div><br></div><div>Lacey<br><br><div class="gmail_quote">On Fri, Mar 19, 2010 at 3:25 PM, Jeanne Altmann <span dir="ltr">&lt;<a href="mailto:altj@princeton.edu">altj@princeton.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5"><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:babase-bounces@eeblistserv.princeton.edu">babase-bounces@eeblistserv.princeton.edu</a><br>
[mailto:<a href="mailto:babase-bounces@eeblistserv.princeton.edu">babase-bounces@eeblistserv.princeton.edu</a>] On Behalf Of Karl O.<br>
Pinc<br>
Sent: Friday, March 19, 2010 3:15 PM<br>
To: The Baboon Database Project<br>
Subject: Re: [Babase] Rankdate Changes in Babase<br>
<br>
On 03/19/2010 01:48:28 PM, Lacey Maryott Roerish wrote:<br>
&gt; Susan, (et al)<br>
&gt;<br>
&gt;       Jeanne, Karl, Niki and I just finished discussing how to handle<br>
&gt; some<br>
&gt; recent issues discovered in babase related to Rankdates.  It can be<br>
&gt; difficult to extract number of males on a given date if some males<br>
&gt; rankdates<br>
&gt; occur in the middle of the month.  For this reason,  I will be<br>
&gt; changing all<br>
&gt; rankdates (Both BY and ON) to the beginning on the month using a<br>
&gt; function<br>
&gt; Karl had previously developed.  This will simply make querying<br>
&gt; easier,<br>
&gt; and<br>
&gt; will also sync up rankdates data with actual rank data, which are all<br>
&gt; recorded on the 1st of the month.<br>
<br>
We will also then put a rule in requiring that rankdates.rnkdate be<br>
on the first of the month.  (Once Lacey let&#39;s me know she&#39;s done<br>
changing the data.)<br>
<br>
The problem has been that nobody ever uses the rnkdate() function,<br>
which sets a date to the first of the month, when comparing<br>
ranks.rnkdate with rankdates.ranked.  They&#39;ll still have to use this<br>
function when doing arbitrary date comparisons against either<br>
ranks.rnkdate or, now, rankdates.ranked so we&#39;re not really<br>
making the problem go away, but are pushing it farther to the<br>
fringes.  In any case the ranks.rnkdate/rankdate.ranked problem<br>
has been discussed every few years so it&#39;s clear there&#39;s a<br>
problem there that this change will make go away.<br>
<br>
<br>
Karl &lt;<a href="mailto:kop@meme.com">kop@meme.com</a>&gt;<br>
Free Software:  &quot;You don&#39;t pay back, you pay forward.&quot;<br>
                 -- Robert A. Heinlein<br>
<br>
</div></div>Agreed; it will remain a potentially valuable function that we need to<br>
remember the situations you note.  However, with the proposed change, we<br>
will have the ranked-by date regularized, which is good, and we will<br>
make moot the most common use for the function. Thanks Karl for the<br>
patient reminder about the function and all for brainstorming on the<br>
various issues.<br>
<font color="#888888"><br>
jeanne<br>
</font><div><div></div><div class="h5"><br>
_______________________________________________<br>
Babase mailing list<br>
<a href="mailto:Babase@www.eco.princeton.edu">Babase@www.eco.princeton.edu</a><br>
<a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a><br>
<br>
_______________________________________________<br>
Babase mailing list<br>
<a href="mailto:Babase@www.eco.princeton.edu">Babase@www.eco.princeton.edu</a><br>
<a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>- -<br>Lacey K. Maryott Roerish<br>Alberts Lab<br>Department of Biology<br>Duke University<br>ph: 919-660-7306<br>fax: 919-660-7293<br><a href="mailto:Lacey.Maryott@duke.edu">Lacey.Maryott@duke.edu</a><br>

</div>