Skip to content
Prev 299838 / 398503 Next

c(a, b) for POSIXct objects with tzone attributes?

Hi, Prof. Ripley, Bert:


       Thanks for the comments.


       Might there be a function similar to "c" but retains more 
attributes than just names?


       Before I write such, I felt a need to ask if anyone knows where 
it may already have been done -- and if people have suggestions for how 
they think it should function with particular classes of objects?  For 
example, if create an S3 generic "c2" for this, "c2.default" might 
retains all the attributes that make sense from the first argument and 
ignore attributes from later arguments if it makes sense to do so.  This 
would then retain the tzone attribute from the first of multiple POSIXct 
arguments.


       Thanks,
       Spencer
On 7/9/2012 6:24 AM, Prof Brian Ripley wrote: