On Apr 16, 2010, at 9:28 AM, kafkaz wrote:
Hello,
I use format() function to get number of the week, like this:
format(tmp,'%U')
Recently, I have spotted something bizarre. For example, I have such
object:
(index(tmp$x.delta['2009'][1:16]))
[1] "2009-01-02 CET" "2009-01-09 CET" "2009-01-1
Were you expecting "01", and is that why you are puzzled?
See ?strftime and the explanation of the %U format. It depends on
where the first Sunday of the year happens to fall.
-Don
At 5:28 AM -0800 4/16/10, kafkaz wrote:
Hello,
I use format() function to get number of the week, like this:
fo
Hello,
I use format() function to get number of the week, like this:
format(tmp,'%U')
Recently, I have spotted something bizarre. For example, I have such object:
(index(tmp$x.delta['2009'][1:16]))
[1] "2009-01-02 CET" "2009-01-09 CET" "2009-01-16 CET" "2009-01-23 CET"
[5] "2009-01-30 CET"
3 matches
Mail list logo