Displaying 2 results from an estimated 2 matches for "poisxct".
Did you mean:
poisot
2007 Jun 20
2
Averaging dates?
Hi,
What's the best way to average dates?
I though mean.POISXct would work fine but...
> a
[1] "2007-04-02 19:22:00 WEST"
> b
[1] "2007-03-17 16:23:00 WET"
> class(a)
[1] "POSIXt" "POSIXct"
> class(b)
[1] "POSIXt" "POSIXct"
> mean(a,b)
[1] "2007-04-02 19:22:00 WEST"
> mea...
2004 Aug 19
2
proposed change to [.POSIXct
R developers,
The "tzone" attribute is stripped from a POSIXct object when the subscript
command is called ("[.POISXct"). This results in dates being printed in the
locale specific format after a subscript operation is applied to a POSIXct
object which has cause several problems for me in the past.
Here is an example of this problem under R 1.9.1:
> x <- ISOdate(rep(2000,2),rep(3,2),rep(26,2),hour=0)...