l == laurent lgaut...@gmail.com
on Sun, 09 Aug 2009 21:45:07 +0200 writes:
l Thanks. It seems that the source of my confusion comes
l from using first using str() (and then once on the wrong
l track, it is easier to miss the information a man page
l that also describes
{Correcting thinko below .. }
MM == Martin Maechler maech...@stat.math.ethz.ch
on Mon, 10 Aug 2009 08:55:52 +0200 writes:
l == laurent lgaut...@gmail.com
on Sun, 09 Aug 2009 21:45:07 +0200 writes:
l Thanks. It seems that the source of my confusion comes
l from using
Dear List,
I am having an issue with strptime (see below).
I can reproduce it on R-2.8, R-2.9, and R-2.10-dev, I tempted to see
either a bug or my misunderstanding (and then I just don't currently see
where).
# setup:
x - c(March 09, 2007, May 31, 2007, November 12, 2008, November
12, 2008,
Try this to see its components:
str(unclass(xd))
List of 9
$ sec : num [1:6] 0 0 0 0 0 0
$ min : int [1:6] 0 0 0 0 0 0
$ hour : int [1:6] 0 0 0 0 0 0
$ mday : int [1:6] 9 31 12 12 30 30
$ mon : int [1:6] 2 4 10 10 6 6
$ year : int [1:6] 107 107 108 108 109 109
$ wday : int [1:6] 5 4 3
The reason is in the ?strptime under value:
'strptime' turns character representations into an object of class
'POSIXlt'. The timezone is used to set the 'isdst' component
and to set the 'tzone' attribute if 'tz != '.
And POSIXlt is a list of length 9.
HTH
Jeff
On Sun, Aug 9, 2009
Thanks.
It seems that the source of my confusion comes from using first using
str() (and then once on the wrong track, it is easier to miss the
information a man page that also describes POSIXct that is itself a
vector of length equal to the number of entries it contains).
With the current