Skip to content

names on cum* functions

3 messages · Brian Ripley, Patrick Burns

#
Is it accidental or on purpose that names get stripped from the
result of "cumsum", "cumprod", "cummin" and "cummax"?

If it is accidental, I suggest that keeping names (and other attributes)
would be appropriate.  (Found porting code from S-PLUS.)


Patrick Burns

Burns Statistics
patrick@burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")
#
On Sat, 15 May 2004, Patrick Burns wrote:

            
Almost certainly accidental.
Names, sure.  I am not so sure about all other attributes, in particular 
class (suppose these were difftimes?).
#
Prof Brian Ripley wrote:

            
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.