s-news
[Top] [All Lists]

Character Coercion of time sequences

To: <s-news@lists.biostat.wustl.edu>
Subject: Character Coercion of time sequences
From: "Dimitrios Chalvatzis" <dimitrios.stats@btopenworld.com>
Date: Fri, 16 Jul 2004 23:11:18 +0100
Importance: Normal

Dear list,

 

I am really puzzled by this one… I am simply coercing a time sequence to characters (that naturally drops out all the remaining slots of the timeDate class) and run a logical test on the output. However, my test keeps failing:

 

> (as.character(timeSeq("01/01/03","03/01/03",by="days")))=="01/01/03"

[1] F F F

 

whereas this works:

> c("01/01/03","02/01/03")=="01/01/03"

[1] T F

 

Can someone please enlighten me?

I work with S-Plus 6.2 on a Windows XP platform

Thank you,

 

 

Dimitrios Chalvatzis

Risk Analyst

Energy Wholesale

Eon UK

 

 

<Prev in Thread] Current Thread [Next in Thread>
  • Character Coercion of time sequences, Dimitrios Chalvatzis <=