Re: [Rd] Date vs date (long)

2007-09-21 Thread Terry Therneau
Peter et al Thanks for the comments on dates. Some of the respondents missed the point, by showing ways that I could work around the problems, when my main argument is that one shouldn't have to work around problems. So I hereto present round 2 of the debate. 1 Postulates a. In my 35

Re: [Rd] Date vs date (long)

2007-09-17 Thread Peter Dalgaard
Terry Therneau wrote: b. I'd advise against numeric operation on difftime objects in general, because of the unspecified units. If I carry this idea forward, the R should insist that I specify units for any variable that corresponds to a physical quantity, e.g. height or weight, so that

Re: [Rd] Date vs date (long)

2007-09-17 Thread Gabor Grothendieck
On 9/17/07, Terry Therneau [EMAIL PROTECTED] wrote: Gabor Grothendieck as.Date(10) You can define as.Date.numeric in your package and then it will work. zoo has done that. library(zoo) as.Date(10) This is also a nice idea. Although adding to a package is possible, it is now very hard