From pburns at pburns.seanet.com  Sat May 15 23:27:36 2004
From: pburns at pburns.seanet.com (Patrick Burns)
Date: Sat May 15 23:28:32 2004
Subject: [Rd] names on cum* functions
References: <Pine.LNX.4.44.0405152159230.24143-100000@gannet.stats>
Message-ID: <40A68B48.8040404@pburns.seanet.com>



Prof Brian Ripley wrote:

>On Sat, 15 May 2004, Patrick Burns wrote:
>
>  
>
>>Is it accidental or on purpose that names get stripped from the
>>result of "cumsum", "cumprod", "cummin" and "cummax"?
>>    
>>
>
>Almost certainly accidental.
>
>  
>
>>If it is accidental, I suggest that keeping names (and other attributes)
>>would be appropriate.  (Found porting code from S-PLUS.)
>>    
>>
>
>Names, sure.  I am not so sure about all other attributes, in particular 
>class (suppose these were difftimes?).
>
>  
>
I was thinking about dim -- I agree that class could be problematic.
Given this counter-example, I would find it hard to argue that
anything beyond names should be saved.


[Rd] names on cum* functions
Patrick Burns